-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.template
54 lines (48 loc) · 1.03 KB
/
docker-compose.yml.template
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
version: "3.8"
services:
basel-viz-postgres:
container_name: basel-viz-postgres
command: postgres -c listen_addresses='*'
build: ./db/.
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=main
ports:
- 5432
networks:
- db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: always
basel-viz-fastapi:
container_name: basel-viz-fastapi
build: ./api/.
ports:
- 8000
networks:
- db
- frontend
environment:
- POSTGRES_URL=postgresql://postgres:postgres@basel-viz-postgres:5432/main
restart: always
basel-viz-frontend:
container_name: basel-viz-frontend
build:
context: ./frontend/.
args:
- NODE_ENV=production
- PUBLIC_API_URL=http://basel-viz-fastapi:8000
ports:
- 8000:3000
restart: always
networks:
- frontend
networks:
db:
name: db
frontend:
name: frontend