-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.development.yml
More file actions
59 lines (57 loc) · 1.46 KB
/
compose.development.yml
File metadata and controls
59 lines (57 loc) · 1.46 KB
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
# Development file
services:
development_backend:
container_name: development-backend
build:
context: .
dockerfile: backend/Backend.Dockerfile
command: ["flask", "--app", "monitoring:create_app()", "run", "--host", "0.0.0.0", "--port", "5001"]
volumes:
- ./backend:/usr/src/backend
- ./config.json:/usr/src/config.json
ports:
- "5001:5001"
env_file:
- backend/.env.dev
environment:
- FLASK_ENV=DEVELOPMENT
- FLASK_DEBUG=1
restart: always
depends_on:
development_db:
condition: service_healthy
development_frontend:
container_name: development-frontend
ports:
- "8081:8081"
build:
context: .
dockerfile: frontend/Frontend.Dockerfile
volumes:
- ./frontend:/usr/src/frontend
- ./config.json:/usr/src/config.json
command: ["npm", "run", "dev", "--", "--port", "8081"]
env_file:
- frontend/.env
environment:
- NODE_ENV=development
restart: always
depends_on:
development_db:
condition: service_healthy
development_db:
container_name: development-db
image: postgres:latest
restart: always
volumes:
- postgres_dev:/var/lib/postgresql
env_file:
- backend/.env.dev
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
volumes:
postgres_dev: