-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (74 loc) · 1.55 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.9'
name: 'helix'
services:
server:
container_name: server
image: "xavier2p/helix-server"
ports:
- "3001:3001"
restart: always
networks:
helix:
ipv4_address: 10.10.0.2
depends_on:
db:
condition: service_healthy
environment:
- HELIX_DB_HOST=db
- HELIX_DB_USER=root
- PORT_API=3001
- HELIX_DB_PORT=5002
- HELIX_DB_PASSWORD=/run/secrets/db-password
- HELIX_DB_NAME=helix
- ACCESS_TOKEN_SECRET=/run/secrets/access-token
- REFRESH_TOKEN_SECRET=/run/secrets/refresh-token
volumes:
- './config:/run/secrets'
client:
container_name: client
image: "xavier2p/helix-client"
ports:
- "80:3000"
restart: always
networks:
helix:
ipv4_address: 10.10.0.4
depends_on:
- server
stdin_open: true
tty: true
environment:
- REACT_APP_API_URL=http://172.16.183.69:3001/api
db:
container_name: db
image: "xavier2p/helix-db"
ports:
- "5002:3306"
restart: always
networks:
helix:
ipv4_address: 10.10.0.3
environment:
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
volumes:
- './config:/run/secrets'
healthcheck:
test:
[
'CMD',
'mysqladmin',
'ping',
'-h',
'localhost',
'-uroot',
'-proot'
]
interval: 5s
timeout: 5s
retries: 20
networks:
helix:
ipam:
driver: default
config:
- subnet: 10.10.0.0/16