-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
55 lines (50 loc) · 921 Bytes
/
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: '3.9'
services:
redis:
container_name: redis
restart: on-failure
build: ./cache
ports:
- 6379:6379
networks:
- app_network
mysql:
container_name: mysql
restart: on-failure
build: ./db
ports:
- 3306:3306
volumes:
- ./db/data:/var/lib/mysql
- ./db/log:/var/log/mysql
networks:
- app_network
django:
container_name: django
restart: on-failure
build: ./server
ports:
- 8000:8000
- 8001:8001
volumes:
- ./server:/server
depends_on:
- redis
- mysql
networks:
- app_network
node:
container_name: node
command: bash -c "npm install --force && npm start"
restart: on-failure
build: ./client
ports:
- 3000:3000
volumes:
- ./client:/client
depends_on:
- django
networks:
- app_network
networks:
app_network: