lestoitsduval/docker-compose.prod.yml

37 lines
954 B
YAML
Raw Normal View History

2020-05-22 11:13:09 +02:00
version: "3.8"
2020-06-02 12:32:06 +02:00
volumes:
ltdv-prod-stats:
name: ltdv-prod-stats
ltdv-prod-logs:
name: ltdv-prod-logs
2020-05-22 11:13:09 +02:00
services:
ltdv-prod:
container_name: ${PROD_CONTAINER_NAME}
build: .
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.ltdv-prod.rule: "Host(`${PROD_URL}`)"
traefik.http.routers.ltdv-prod.entrypoints: "web"
volumes:
2020-06-02 12:32:06 +02:00
- ltdv-prod-logs:/var/log/nginx
- ltdv-prod-stats:/usr/share/nginx/html/stats
2020-05-22 11:13:09 +02:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2020-06-02 12:32:06 +02:00
ltdv-prod-logs:
container_name: ltdv-prod-logs
2021-04-12 17:22:23 +02:00
image: registry.weko.io/goaccess:1.4.6
2020-06-02 12:32:06 +02:00
restart: always
depends_on:
- ltdv-prod
volumes:
- ltdv-prod-logs:/var/log/nginx
- ltdv-prod-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
com.centurylinklabs.watchtower.enable: true