-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.28 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
version: "3.7"
services:
backend:
build: './server'
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
ports:
- "5001:5001"
env_file:
- ./server/.env
volumes:
- ./server/index.json:/app/index.json
restart: unless-stopped
frontend:
build: './client'
network_mode: "host"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
nginx:
image: nginx:1.15-alpine
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
network_mode: "host"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot