provide lb and certbot
This commit is contained in:
parent
87397d4103
commit
4d3423f350
1 changed files with 36 additions and 0 deletions
|
@ -1,5 +1,37 @@
|
||||||
version: "3.3"
|
version: "3.3"
|
||||||
services:
|
services:
|
||||||
|
lb:
|
||||||
|
image: haproxy:latest
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
volumes:
|
||||||
|
- "./data/certificates:/certificates"
|
||||||
|
- "./config/lb:/usr/local/etc/haproxy"
|
||||||
|
depends_on:
|
||||||
|
- "certbot"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
labels:
|
||||||
|
- meta.role=lb
|
||||||
|
|
||||||
|
certbot:
|
||||||
|
image: "certbot/certbot"
|
||||||
|
hostname: certbot
|
||||||
|
volumes:
|
||||||
|
- "./data/certificates:/certificates"
|
||||||
|
- "./data/certbot/etc:/etc/letsencrypt"
|
||||||
|
- "./data/certbot/var:/var/lib/letsencrypt"
|
||||||
|
- "./logs/certbot:/var/log/letsencrypt"
|
||||||
|
restart: on-failure
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
labels:
|
||||||
|
- meta.role=certbot
|
||||||
|
#entrypoint: sh -c 'while true; do sleep 1; done'
|
||||||
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 15d & wait $${!}; done;'"
|
||||||
|
|
||||||
rtmp:
|
rtmp:
|
||||||
build: ./rtmp
|
build: ./rtmp
|
||||||
ports:
|
ports:
|
||||||
|
@ -12,3 +44,7 @@ services:
|
||||||
auth:
|
auth:
|
||||||
build: ./auth
|
build: ./auth
|
||||||
container_name: auth_server
|
container_name: auth_server
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal: {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue