-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose-dev.yml
78 lines (77 loc) · 2.04 KB
/
docker-compose-dev.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
version: "3.8"
services:
postgres_dev_compass:
container_name: pg_dev_container
image: postgres:latest
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
volumes:
- pg_dev_data:/var/lib/postgresql/data
ports:
- "${DB_PORT}:${DB_PORT}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 3s
retries: 5
server_dev_compass:
container_name: server_dev_container
image: server_dev_image
environment:
- PORT=${PORT}
- DB_HOST=postgres_dev_compass
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- FIREBASE_SA=${FIREBASE_SA}
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
- NODE_ENV=development
- GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY}
- NEWS_API_KEY=${NEWS_API_KEY}
build:
context: ./server/
dockerfile: dev.Dockerfile
args:
- PORT=${PORT}
volumes:
- ./server/:/app/server:cached
- /app/server/node_modules/
ports:
- "${PORT}:${PORT}"
depends_on:
postgres_dev_compass:
condition: service_healthy
client_dev_compass:
container_name: client_dev_container
image: client_dev_image
environment:
- CLIENT_DEV_PORT=${CLIENT_DEV_PORT}
build:
context: ./client/
dockerfile: dev.Dockerfile
volumes:
- ./client/:/app/client:cached
- /app/client/node_modules/
ports:
- "${CLIENT_DEV_PORT}:${CLIENT_DEV_PORT}"
depends_on:
- server_dev_compass
# python_server_ai:
# container_name: python_server_ai_container
# image: python_server_ai_image
# environment:
# - PORT=${PORT}
# - IS_LOCAL=${IS_LOCAL}
# - PYTHON_HOST=${PYTHON_HOST}
# - PYTHON_PORT=${PYTHON_PORT}
# build:
# context: ./pythonServer/
# ports:
# - "${PYTHON_PORT}:${PYTHON_PORT}"
# depends_on:
# - client_dev_compass
volumes:
pg_dev_data: {}