-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
55 lines (52 loc) · 1.41 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '2.4'
services:
mysql:
image: bitnami/mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "test1234"
MYSQL_DATABASE: "db_monscape"
healthcheck:
test: mysqladmin ping -h localhost
volumes:
- ../../shared/mysql/schema.sql:/docker-entrypoint-initdb.d/1.sql
- ./data.sql:/docker-entrypoint-initdb.d/2.sql
ports:
- "3307:3306"
logging:
driver: none
server:
build:
context: ../../../../
dockerfile: ./build/package/server/Dockerfile
depends_on:
mysql:
condition: service_healthy
healthcheck:
test: wget -c -q localhost:9186/health
volumes:
- ../../../../internal:/go/src/github.com/Haraj-backend/hex-monscape/internal
- ../../../../cmd/server:/go/src/github.com/Haraj-backend/hex-monscape/cmd/server
- ../../../../.output/go/pkg:/go/pkg
ports:
- 9186:9186
environment:
- STORAGE_TYPE=mysql
- STORAGE_MYSQL_SQL_DSN=root:test1234@tcp(mysql:3306)/db_monscape?timeout=5s
client:
build:
context: ../../../../
dockerfile: ./build/package/client/Dockerfile
depends_on:
mysql:
condition: service_healthy
server:
condition: service_healthy
volumes:
- ../../../../cmd/client:/client
- exclude:/client/node_modules
ports:
- 8161:8161
environment:
- VITE_MONSCAPE_URL=http://localhost:9186
volumes:
exclude: