-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
122 lines (113 loc) · 2.24 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3.3'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend:/usr/src/
- ./config:/usr/src/config
- ./models:/usr/src/models
environment:
- BACKEND_SETTINGS=config.local
networks:
- api_bridge
restart: always
deploy:
replicas: 1
depends_on:
- redis
- db
api:
build:
context: ./api
dockerfile: Dockerfile
command: python app.py run -h 0.0.0.0
volumes:
- ./api:/usr/src
- ./config:/usr/src/config
- ./models:/usr/src/models
- ./VERSION:/usr/VERSION
ports:
- 5001:5000
environment:
- FLASK_ENV=development
- BACKEND_SETTINGS=config.local
networks:
- api_bridge
restart: always
depends_on:
- db
- redis
migrate:
image: queds_api
command: bash -c "cd models && alembic upgrade head"
volumes:
- ./config:/usr/src/config
- ./models:/usr/src/models
environment:
- BACKEND_SETTINGS=config.local
networks:
- api_bridge
depends_on:
- db
- api
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- VUE_APP_BACKEND_URL=/api
volumes:
- './frontend:/app'
- '/app/node_modules'
ports:
- 3007:8080
environment:
- CHOKIDAR_USEPOLLING=true
- NODE_ENV=development
networks:
- api_bridge
depends_on:
- db
- api
nginx:
image: nginx
volumes:
- ./nginx_template.conf:/etc/nginx/conf.d/default.conf
restart: always
ports:
- 6060:80
depends_on:
- backend
- frontend
networks:
- api_bridge
redis:
image: bitnami/redis
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
logging:
driver: none
networks:
- api_bridge
db:
image: timescale/timescaledb:2.8.1-pg12
restart: always
environment:
POSTGRES_DB: queds
POSTGRES_USER: queds_user
POSTGRES_PASSWORD: Kbh85n7M6Fxo
volumes:
- users_data:/var/lib/postgresql/data/
networks:
- api_bridge
ports:
- 5432:5432
networks:
api_bridge:
driver: bridge
volumes:
users_data: