dabo/docker-compose.yml

54 lines
1.3 KiB
YAML

version: '3.6'
services:
dabo-bot:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
user: 10000:10000
volumes:
- ./dabo:/dabo:ro
- ./data:/dabo/htdocs:rw
- ./home:/dabo/home:rw
- /usr/local/bin/notify.sh:/usr/local/bin/notify.sh:ro
- /etc/localtime:/etc/localtime:ro
networks:
- dabo--network
dabo-web:
image: nginx:latest
restart: unless-stopped
volumes:
- ./data:/usr/share/nginx/html:ro
- /etc/localtime:/etc/localtime:ro
networks:
- traefik
labels:
- traefik.enable=true
# HTTPS
- traefik.http.routers.dabo-web.rule=Host(`dabo.ds9.dedyn.io`)
- traefik.http.routers.dabo-web.entrypoints=https
- traefik.http.routers.dabo-web.tls=true
# Proxy to service-port
- traefik.http.services.dabo-web.loadbalancer.server.port=80
- traefik.http.routers.dabo-web.service=dabo-web
# cert via letsencrypt
- traefik.http.routers.dabo-web.tls.certresolver=letsencrypt
# activate secHeaders@file
- traefik.http.routers.dabo-web.middlewares=secHeaders@file
# Traefik network
- traefik.docker.network=traefik
networks:
dabo--network:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-dabo
traefik:
external: true