forked from codeforboston/police-data-trust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.09 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
version: "3"
services:
db:
image: postgres:16.1 #AWS RDS latest version
env_file:
- ".env"
volumes:
- postgres:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432}
web:
build:
context: ./frontend
args:
PDT_WEB_PORT: ${PDT_WEB_PORT:-3000}
volumes:
- ./frontend:/app
# Prevents the host node_modules from clobbering the image's
- /app/node_modules
environment:
NEXT_PUBLIC_API_MODE: real
NEXT_PUBLIC_API_BASE_URL: http://localhost:${PDT_API_PORT:-5000}/api/v1
ports:
- ${PDT_WEB_PORT:-3000}:${PDT_WEB_PORT:-3000}
api:
build:
context: .
dockerfile: ./backend/Dockerfile
args:
PDT_API_PORT: ${PDT_API_PORT:-5000}
volumes:
- .:/app
depends_on:
- db
environment:
PYTHONPATH: app/
POSTGRES_HOST: db
FLASK_ENV: ${FLASK_ENV:-development}
WAIT_HOSTS: db:${POSTGRES_PORT:-5432}
MIXPANEL_TOKEN: ${MIXPANEL_TOKEN:-notset}
ports:
- ${PDT_API_PORT:-5000}:${PDT_API_PORT:-5000}
volumes:
postgres: {}