resilien/docker-compose.prod.yml

38 lines
890 B
YAML
Raw Normal View History

2021-10-18 16:58:59 +02:00
version: "3.8"
volumes:
resilien-log:
name: resilien-log
resilien-stats:
name: resilien-stats
services:
resilien-prod:
container_name: resilien-prod
build: .
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.resilien.rule: "Host(`${URL}`)"
traefik.http.routers.resilien.entrypoints: "web"
volumes:
- resilien-log:/var/log/nginx
- resilien-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
resilien-stats:
container_name: resilien-stats
image: registry.weko.io/goaccess:1.5.1
restart: always
volumes:
- resilien-log:/var/log/nginx
- resilien-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
default:
external:
name: traefik