-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
173 lines (165 loc) · 4.69 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
services:
db:
build:
context: ${BUILD_ROOT}/haitaton-backend/scripts/docker-postgres
dockerfile: Dockerfile
container_name: haitaton-db
environment:
- DB_APP_DB=haitaton
- DB_APP_DB_TEST=haitaton_test
- DB_APP_USER=haitaton_user
- DB_APP_PASSWORD=haitaton
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- ${DB_VOLUME}:/var/lib/postgresql/data
networks:
backbone:
aliases:
- haitaton-db
# Adapted from https://github.com/benzino77/clamav-rest-api/blob/6ab5d6b283faab9726763e5fee70aabb82fec51e/examples/docker-compose.yml
clamd:
image: clamav/clamav:stable
container_name: clamav
restart: unless-stopped
networks:
- backbone
clamav-api:
image: benzino77/clamav-rest-api
container_name: clamav-rest
restart: unless-stopped
command: [ '/usr/bin/wait-for-it', '-h', 'clamd', '-p', '3310', '-s', '-t', '120', '--', 'npm', 'start' ]
depends_on:
- clamd
environment:
- NODE_ENV=production
- CLAMD_IP=clamd
- APP_FORM_KEY=FILES
- APP_PORT=3030
- APP_MAX_FILE_SIZE=105906176
ports:
- '3030:3030'
networks:
- backbone
smtp4dev:
image: rnwood/smtp4dev:v3
container_name: smtp4dev
restart: always
ports:
- '3003:80' # Web UI
- '2525:25' # Port for receiving SMTP
networks:
backbone:
aliases:
- smtp4dev
environment:
- ServerOptions__HostName=smtp4dev
azurite:
image: mcr.microsoft.com/azure-storage/azurite
container_name: azurite
restart: always
command: azurite-blob --blobHost 0.0.0.0 --blobPort 10000 --location /data --debug /workspace/azurite-debug.log
ports:
- '10000:10000'
volumes:
- azurite-data:/data
- .:/workspace
networks:
backbone:
aliases:
- azurite
azurite-setup:
image: mcr.microsoft.com/azure-cli
container_name: azurite-setup
depends_on:
- azurite
command: /tmp/setup.sh
volumes:
- ${BUILD_ROOT}/haitaton-backend/scripts/docker-azurite:/tmp/.
networks:
- backbone
haitaton-hanke:
build:
context: ${BUILD_ROOT}/haitaton-backend
dockerfile: services/hanke-service/Dockerfile-local
image: services/hanke-service
container_name: haitaton-hanke
ports:
- "3000:8080"
hostname: haitaton-hanke
environment:
HAITATON_HOST: db
HAITATON_PORT: 5432
HAITATON_USER: haitaton_user
HAITATON_PASSWORD: haitaton
HAITATON_BLOB_CONNECTION_STRING: BlobEndpoint=http://azurite:10000/devstoreaccount1;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;
# HAITATON_CORS_ALLOWED_ORIGINS: http://localhost:8000
HAITATON_GDPR_DISABLED: ${HAITATON_GDPR_DISABLED:-true}
ALLU_BASEURL: ${ALLU_BASEURL}
ALLU_USERNAME: ${ALLU_USERNAME}
ALLU_PASSWORD: ${ALLU_PASSWORD}
ALLU_INSECURE: ${ALLU_INSECURE}
ALLU_UPDATE_INITIAL_DELAY: ${ALLU_UPDATE_INITIAL_DELAY:-}
MAIL_SENDER_HOST: smtp4dev
MAIL_SENDER_PORT: 25
HAITATON_EMAIL_FILTER_USE: false
CLAMAV_BASE_URL: http://clamav-api:3030
HAITATON_TESTDATA_ENABLED: true
HAITATON_FEATURE_HANKE_EDITING: ${HAITATON_FEATURE_HANKE_EDITING:-true}
HAITATON_API_DISABLED: ${HAITATON_API_DISABLED:-false}
depends_on:
- db
- clamav-api
- azurite-setup
networks:
backbone:
aliases:
- haitaton-hanke
links:
- smtp4dev
haitaton-ui:
build:
context: ${BUILD_ROOT}/haitaton-ui
dockerfile: ${FRONT_DOCKERFILE}
image: haitaton-ui
container_name: haitaton-ui
environment:
# Possible values:
# - haitaton-ui-dev for Suomi.fi authentication
# - haitaton-admin-ui-dev for Helsinki AD authentication
REACT_APP_OIDC_CLIENT_ID: haitaton-ui-dev
LOGIN_SERVER: https://tunnistus.test.hel.ninja
REACT_APP_FEATURE_HANKE: 1
REACT_APP_FEATURE_ACCESS_RIGHTS: 1
ports:
- "8000:8000"
volumes:
- ${BUILD_ROOT}/haitaton-ui:/app
- '/app/node_modules'
networks:
backbone:
aliases:
- haitaton-ui
haitaton-nginx:
image: nginx:latest
container_name: haitaton_nginx
hostname: haitaton-nginx
volumes:
- ${BUILD_ROOT}/haitaton-backend/scripts/nginx/${NGINX_CONF}:/etc/nginx/conf.d/default.conf
ports:
- "3001:80"
depends_on:
- haitaton-hanke
- haitaton-ui
networks:
- backbone
links:
- haitaton-hanke
- haitaton-ui
volumes:
azurite-data:
networks:
backbone:
driver: bridge