-
Notifications
You must be signed in to change notification settings - Fork 10
/
compose.benefit-backend.yml
108 lines (101 loc) · 2.28 KB
/
compose.benefit-backend.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
100
101
102
103
104
105
106
107
108
name: yjdh-benefit
services:
postgres:
build:
context: ./backend
dockerfile: ./docker/finnish_postgres.Dockerfile
restart: on-failure
environment:
POSTGRES_USER: benefit
POSTGRES_PASSWORD: benefit
POSTGRES_DB: benefit
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: benefit-db
backend:
build:
context: ./backend
dockerfile: ./docker/benefit-ubi-arm.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
local-proxy:
depends_on:
- postgres
- backend
build:
context: ./localdevelopment/benefit/nginx
container_name: benefit-local-proxy
volumes:
- ./localdevelopment/benefit/nginx/:/etc/nginx/
ports:
- 127.0.0.1:8000:8000
mailpit:
image: "axllent/mailpit:v1.21.4"
ports:
- 1025:1025
- 8025:8025
container_name: benefit-mailpit
networks:
- default
clamav:
image: clamav/clamav:latest
container_name: benefit-clamav
environment:
CLAMAV_NO_LOGFILE: "true"
volumes:
- clamav_data:/var/lib/clamav
- clamav_logs:/var/log/clamav
ports:
- "3310:3310"
networks:
- default
clamav-rest-api:
image: benzino77/clamav-rest-api
container_name: benefit-clamav-rest-api
environment:
NODE_ENV: production
APP_PORT: 8080
APP_FORM_KEY: attachment_file
CLAMD_IP: clamav
APP_MAX_FILE_SIZE: 26214400
ports:
- "8080:8080"
depends_on:
- clamav
command:
[
"/usr/wait-for-it.sh",
"clamav:3310",
"--timeout=30",
"--",
"node",
"src/app.js",
]
volumes:
- ./backend/docker/arm/tools/wait-for-it.sh:/usr/wait-for-it.sh
networks:
- default
volumes:
pgdata:
driver: local
clamav_data:
driver: local
clamav_logs:
driver: local
networks:
default:
name: helsinki