-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.template.yml
More file actions
142 lines (132 loc) · 3.4 KB
/
docker-compose.template.yml
File metadata and controls
142 lines (132 loc) · 3.4 KB
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
version: '2.4'
services:
db:
image: mariadb:10.7
restart: unless-stopped
{% if db.memLimit %}
mem_limit: {{db.memLimit}}
{% endif %}
environment:
- MYSQL_ROOT_PASSWORD={{db.databaseRootPassword}}
- TZ=Europe/Zurich
volumes:
- ./data/mysql:/var/lib/mysql
- ./config/db/db_schema.{{environment}}.sql:/docker-entrypoint-initdb.d/db_schema.sql
networks:
ooNet:
ipv4_address: 172.16.0.2
s3:
image: minio/minio:RELEASE.2022-10-24T18-35-07Z
restart: unless-stopped
volumes:
- ./data/s3:/data
environment:
- MINIO_ACCESS_KEY={{s3.accessKey}}
- MINIO_SECRET_KEY={{s3.secret}}
command: server /data
## depending on network setup
ports:
- "9050:9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://s3:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
ooNet:
ipv4_address: 172.16.0.3
server:
image: openolitor/openolitor-server:{{release_server}}
restart: unless-stopped
environment:
- TZ=Europe/Zurich
volumes:
# server settings
- ./config/server/openolitor-server.{{environment}}.conf:/etc/openolitor-server/application.conf
- ./config/server/openolitor-server-logback.xml:/etc/openolitor-server/logback.xml
- ./log/server/:/var/log/openolitor-server/
depends_on:
- db
- s3
ports:
- "9003:9003"
healthcheck:
test: ["CMD", "curl", "-f", "http://server:9003/{{csas[0].name}}/open/projekt"]
interval: 30s
timeout: 20s
retries: 3
networks:
ooNet:
ipv4_address: 172.16.0.4
client-admin:
image: openolitor/openolitor-client-admin:{{release_adminportal}}
ports:
- "9100:80"
restart: unless-stopped
volumes:
- ./config/client/admin/config.{{environment}}.js:/usr/share/nginx/html/environments/config.js
## depending on network setup
networks:
ooNet:
ipv4_address: 172.16.0.5
client-kundenportal:
image: openolitor/openolitor-client-kundenportal:{{release_kundenportal}}
ports:
- "9110:80"
restart: unless-stopped
volumes:
- ./config/client/kundenportal/config.{{environment}}.js:/usr/share/nginx/html/environments/config.js
networks:
ooNet:
ipv4_address: 172.16.0.6
nginx:
image: nginx:latest
restart: unless-stopped
environment:
- TZ=Europe/Zurich
ports:
- "80:9000"
- "13423:13423"
volumes:
- ./config/nginx/nginx.{{environment}}.conf:/etc/nginx/nginx.conf
- ./config/nginx/smtp-proxy-htpasswd:/etc/nginx/htpasswd
depends_on:
- client-admin
- client-kundenportal
- server
networks:
ooNet:
ipv4_address: 172.16.0.7
pdf-tool:
image: eugenmayer/jodconverter:rest
restart: unless-stopped
ports:
- "9040:8080"
networks:
ooNet:
ipv4_address: 172.16.0.8
smtp-server:
image: bytemark/smtp
environment:
MAILNAME: {{smtpServerHostname}}
restart: always
{% if smtpProxy %}
smtp-proxy:
image: mailhog/mailhog
environment:
- TZ=Europe/Zurich
ports:
- "1025:1025"
- "8025:8025"
networks:
ooNet:
ipv4_address: 172.16.0.9
{% endif %}
networks:
ooNet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.0.0/16
gateway: 172.16.0.1