-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (78 loc) · 2.04 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
version: '3'
x-domibus: &env-domibus
env_file:
- ./.env.domibus
x-oots: &configuration-base
build:
context: .
env_file:
- ./.env.oots
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules/
services:
test:
<<: *configuration-base
command: "npm run test:watch"
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
depends_on:
- nginx
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
nginx:
image: nginx:mainline-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf:/etc/nginx/conf.d
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
depends_on:
- web
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
web:
<<: *configuration-base
command: "npx nodemon server.js"
ports:
- "${PORT_OOTS_FRANCE}:3000"
depends_on:
- domibus
domibus:
image: code.europa.eu:4567/edelivery/docker/domibus-tomcat9:5.0.4
<<: *env-domibus
environment:
- DB_TYPE=MySQL
- DB_HOST=mysql
- DB_PORT=3306
- LOGGER_LEVEL_ORG_APACHE_CXF=INFO
- CHECK_DEFAULT_PASSWD=false
- domibus.metrics.sl4j.reporter.enable=false
- domibus.metrics.monitor.jms.queues=false
- domibus.metrics.monitor.memory=false
- domibus.metrics.monitor.gc=false
- domibus.metrics.monitor.cached.threads=false
logging:
driver:
none
ports:
- "${PORT_DOMIBUS}:8080"
volumes:
- ./domibus:/data/tomcat/conf/domibus
depends_on:
- mysql
mysql:
image: code.europa.eu:4567/edelivery/docker/domibus-mysql8:5.0.4
<<: *env-domibus
security_opt:
- seccomp:unconfined
volumes:
- shared_db_file_system:/var/lib/mysql
volumes:
node_modules:
shared_db_file_system: