-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (63 loc) · 1.67 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
version: '3.7'
services:
backend:
build: ./backend
env_file:
- saml.env
environment:
MYSQL_DATABASE: moussedb
MYSQL_ROOT_PASSWORD: root
restart: unless-stopped
volumes:
- ./backend/data.json:/mousse/data.json
shm_size: '2gb'
certbot:
entrypoint: /bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h &
wait $${!}; done;'
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt:rw
- ./data/certbot/www:/var/www/certbot:rw
mysql:
build: ./mysql
command: --default-authentication-plugin=mysql_native_password --sql_mode=""
environment:
MYSQL_DATABASE: moussedb
MYSQL_ROOT_PASSWORD: root
restart: unless-stopped
volumes:
- ./mysql-data:/var/lib/mysql:rw
nginx:
command: /bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done
& nginx -g "daemon off;"'
image: nginx:1.19
ports:
- published: 80
target: 80
- published: 443
target: 443
restart: unless-stopped
volumes:
- ./data/nginx:/etc/nginx/conf.d:rw
- ./data/certbot/conf:/etc/letsencrypt:rw
- ./data/certbot/www:/var/www/certbot:rw
solr:
restart: unless-stopped
command:
- solr-precreate
- mousse_core
image: solr:8.8.1
# ports:
# - published: 8983
# target: 8983
volumes:
- data_solr:/opt/solr/server/solr/mousse_core
- ./backend/data.json:/data.json
# command: /bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/solr-8.8.1/bin/post -c mousse_core /data.json; done'
web:
build: ./frontend/mousse
restart: unless-stopped
volumes:
data:
data_solr: