forked from City-of-Helsinki/yjdh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.benefit.yml
81 lines (75 loc) · 1.7 KB
/
docker-compose.benefit.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
79
80
81
version: "3.8"
services:
postgres:
image: postgres:12
restart: on-failure
environment:
POSTGRES_USER: benefit
POSTGRES_PASSWORD: benefit
POSTGRES_DB: benefit
ports:
- 5434:5432
volumes:
- pgdata:/var/lib/postgresql/data
container_name: benefit-db
django:
build:
context: ./backend
dockerfile: ./docker/benefit.Dockerfile
target: development
env_file:
- .env.benefit-backend
environment:
DATABASE_URL: postgres://benefit:benefit@benefit-db/benefit
DATABASE_HOST: benefit-db.helsinki
volumes:
- ./backend/benefit:/app
- ./backend/shared:/shared
depends_on:
- postgres
container_name: benefit-backend
applicant:
build:
context: ./frontend
dockerfile: benefit/applicant/Dockerfile
target: development
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
env_file:
- .env.benefit-applicant
container_name: benefit-applicant
handler:
build:
context: ./frontend
dockerfile: benefit/handler/Dockerfile
target: development
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
env_file:
- .env.benefit-handler
container_name: benefit-handler
local-proxy:
depends_on:
- postgres
- django
- applicant
- handler
build:
context: ./localdevelopment/benefit/nginx
container_name: benefit-local-proxy
volumes:
- ./localdevelopment/benefit/nginx/:/etc/nginx/
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:3000:3000
- 127.0.0.1:3100:3100
volumes:
pgdata:
driver: local
networks:
default:
name: helsinki