-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·64 lines (62 loc) · 1.32 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
version: '3.7'
services:
redis:
image: redis:latest
ports:
- 6379:6379
volumes:
- ./redis.conf:/redis.conf
command: ['redis-server', '/redis.conf']
networks:
- backend-network
db:
image: 'mysql:8.0.19'
volumes:
- './db/data:/var/lib/mysql'
command: '--default-authentication-plugin=mysql_native_password'
restart: always
secrets:
- db-password
networks:
- backend-network
environment:
- MYSQL_DATABASE=graphue
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
api:
image: 'graphue_api'
build:
context: ./src
dockerfile: Dockerfile
target: develop-stage
restart: always
ports:
- 5000:5000
volumes:
- './src/:/src'
command: /bin/sh -c "FLASK_ENV=development python manage.py"
networks:
- backend-network
- frontend-network
ui:
image: 'graphue_ui'
build:
context: ./src/template
dockerfile: Dockerfile
target: develop-stage
restart: always
ports:
- 8080:8080
volumes:
- './src/template:/template'
command: /bin/sh -c "yarn serve"
networks:
- frontend-network
volumes:
db: null
secrets:
db-password:
file: db/password.txt
networks:
backend-network: null
frontend-network: null