-
Notifications
You must be signed in to change notification settings - Fork 10
/
compose.handler.yml
99 lines (93 loc) · 2.2 KB
/
compose.handler.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: yjdh-kesaseteli
services:
postgres:
build:
context: ./backend
dockerfile: ./docker/finnish_postgres.Dockerfile
platform: linux/amd64
restart: on-failure
environment:
POSTGRES_USER: kesaseteli
POSTGRES_PASSWORD: kesaseteli
POSTGRES_DB: kesaseteli
LC_COLLATE: 'fi_FI.UTF-8'
LC_CTYPE: 'fi_FI.UTF-8'
ports:
- 127.0.0.1:5434:5432
volumes:
- pgdata:/var/lib/postgresql/data
container_name: kesaseteli-db
backend:
build:
context: ./backend
dockerfile: ./docker/kesaseteli.Dockerfile
target: development
platform: linux/amd64
env_file:
- .env.kesaseteli
environment:
DATABASE_URL: postgres://kesaseteli:kesaseteli@kesaseteli-db/kesaseteli
DATABASE_HOST: kesaseteli-db.helsinki
volumes:
- ./backend/kesaseteli:/app
- ./backend/shared:/shared
- ./backend/kesaseteli/media:/var/media
depends_on:
- postgres
container_name: kesaseteli-backend
youth:
build:
context: ./frontend
dockerfile: Dockerfile-localdevelopment
target: development
args:
PORT: 3100
PROJECT: kesaseteli
FOLDER: youth
platform: linux/amd64
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
env_file:
- .env.kesaseteli
container_name: kesaseteli-youth
handler:
build:
context: ./frontend
dockerfile: Dockerfile-localdevelopment
target: development
args:
PORT: 3200
PROJECT: kesaseteli
FOLDER: handler
platform: linux/amd64
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
env_file:
- .env.kesaseteli
container_name: kesaseteli-handler
local-proxy:
depends_on:
- postgres
- backend
- handler
- youth
build:
context: ./localdevelopment/handler/nginx
platform: linux/amd64
container_name: kesaseteli-handler-local-proxy
volumes:
- ./localdevelopment/handler/nginx/:/etc/nginx/
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:3100:3100
- 127.0.0.1:3200:3200
volumes:
pgdata:
driver: local
networks:
default:
name: helsinki