-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (40 loc) · 960 Bytes
/
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
services:
laundry-bot:
build:
context: .
dockerfile: Dockerfile
volumes:
- static-volume:/var/lib/capt_laundry_bot
environment:
BASE_PATH: /var/lib/capt_laundry_bot
restart: unless-stopped
expose:
- "3000"
networks:
- web
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
networks:
- web
depends_on:
- laundry-bot
restart: unless-stopped
volumes:
- static-volume:/usr/share/nginx/html
- ./nginx/:/etc/nginx/conf.d/:ro
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/:/etc/letsencrypt/:ro
certbot:
image: certbot/certbot:latest
restart: unless-stopped
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
static-volume:
networks:
web: