-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
71 lines (66 loc) · 1.62 KB
/
docker-compose.dev.yaml
File metadata and controls
71 lines (66 loc) · 1.62 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
60
61
62
63
64
65
66
67
68
69
70
71
services:
db:
image: postgres:15
environment:
POSTGRES_DB: ${DB_NAME:-logicway}
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
healthcheck:
test: [ "CMD", "pg_isready", "-d", "${DB_NAME:-logicway}", "-U", "${DB_USER:-postgres}" ]
timeout: 5s
retries: 5
start_period: 60s
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- logicnet
route-engine:
build:
context: .
dockerfile: route_engine/Dockerfile
environment:
ROUTE_ENGINE_SECRET_KEY: ${ROUTE_ENGINE_SECRET_KEY}
DJANGO_SETTINGS_MODULE: route_engine.settings.dev
ports:
- "8001:8001"
networks:
- logicnet
logicway:
build:
context: .
dockerfile: logicway/Dockerfile
ports:
- "8000:8000"
depends_on:
- db
- route-engine
environment:
SECRET_KEY: ${SECRET_KEY}
DJANGO_SETTINGS_MODULE: logicway.settings.dev
ROUTE_ENGINE_URL: http://route-engine:8001
DB_NAME: ${DB_NAME:-logicway}
DB_USER: ${DB_USER:-postgres}
DB_PASSWORD: ${DB_PASSWORD:-postgres}
DB_HOST: db
DB_PORT: 5432
networks:
- logicnet
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
environment:
REACT_APP_LOGICWAY_URL: ${LOGICWAY_URL:-http://localhost:8000}
REACT_APP_ROUTE_ENGINE_URL: ${ROUTE_ENGINE_URL:-http://localhost:8000/routing/proxy_route_engine}
ports:
- "3000:80"
depends_on:
- logicway
networks:
- logicnet
volumes:
db_data:
networks:
logicnet: