2020-05-22 11:13:09 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
2020-06-02 12:32:06 +02:00
|
|
|
volumes:
|
2021-04-27 11:10:34 +02:00
|
|
|
ltdv-log:
|
|
|
|
name: ltdv-log
|
|
|
|
ltdv-stats:
|
|
|
|
name: ltdv-stats
|
2020-05-22 11:13:09 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
ltdv-prod:
|
2021-04-27 11:10:34 +02:00
|
|
|
container_name: ltdv-prod
|
2020-05-22 11:13:09 +02:00
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
2021-04-27 11:10:34 +02:00
|
|
|
traefik.http.routers.ltdv-prod.rule: "Host(`${URL}`)"
|
2020-05-22 11:13:09 +02:00
|
|
|
traefik.http.routers.ltdv-prod.entrypoints: "web"
|
|
|
|
volumes:
|
2021-04-27 11:10:34 +02:00
|
|
|
- ltdv-log:/var/log/nginx
|
|
|
|
- ltdv-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
|
|
|
|
2021-04-27 11:10:34 +02:00
|
|
|
ltdv-stats:
|
|
|
|
container_name: ltdv-stats
|
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:
|
2021-04-27 11:10:34 +02:00
|
|
|
- ltdv-log:/var/log/nginx
|
|
|
|
- ltdv-stats:/usr/share/nginx/html/stats
|
2020-06-02 12:32:06 +02:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-04-27 11:10:34 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: traefik
|