-
-
Notifications
You must be signed in to change notification settings - Fork 658
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.19 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
56
57
58
59
60
61
name: otbr
services:
database:
image: mariadb:latest
restart: unless-stopped
env_file:
- '.env'
networks:
- canary-net
ports:
- '$MYSQL_PORT:3306'
volumes:
- 'db-volume:/var/lib/mysql'
- ../schema.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
interval: 10s
timeout: 5s
retries: 10
server:
# cpuset: "0-4"
build:
context: ..
dockerfile: docker/Dockerfile.dev
target: prod
restart: unless-stopped
env_file:
- '.env'
networks:
- canary-net
ports:
- '$gameProtocolPort:$gameProtocolPort'
- '$statusProtocolPort:$statusProtocolPort'
volumes:
- '../:/srv/canary'
depends_on:
database:
condition: service_healthy
login:
image: opentibiabr/login-server:latest
restart: unless-stopped
ports:
- '$LOGIN_HTTP_PORT:$LOGIN_HTTP_PORT'
- '$LOGIN_GRPC_PORT:$LOGIN_GRPC_PORT'
env_file:
- '.env'
networks:
- canary-net
depends_on:
database:
condition: service_healthy
volumes:
db-volume:
networks:
canary-net:
driver: bridge