-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 961 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 961 Bytes
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
version: '3'
services:
app:
build: .
env_file:
- .env
ports:
- '8080:8080'
restart: unless-stopped
container_name: app
volumes:
- ./public/renderer:/app/public/renderer
- ./public/pig:/app/public/pig
image: app
networks:
- app-network
nginx:
image: nginx:mainline-alpine
ports:
- '80:80'
- '443:443'
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./nginx-conf:/etc/nginx/conf.d
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
networks:
- app-network
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
app-network:
driver: bridge