2022-08-02 15:07:02 +02:00
|
|
|
---
|
|
|
|
|
2020-10-03 21:00:19 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
2020-10-04 16:07:55 +02:00
|
|
|
reverse-proxy:
|
2022-12-16 16:47:37 +01:00
|
|
|
image: docker.io/library/traefik:2.9.6
|
2020-10-04 16:07:55 +02:00
|
|
|
command: --api=false --api.dashboard=false --providers.docker
|
2022-08-02 15:08:18 +02:00
|
|
|
mem_limit: 64m
|
2020-10-04 16:07:55 +02:00
|
|
|
networks:
|
2022-08-02 15:07:02 +02:00
|
|
|
- internal-nw
|
|
|
|
- default
|
2020-10-04 16:07:55 +02:00
|
|
|
ports:
|
2022-08-08 15:27:27 +02:00
|
|
|
- 127.0.0.1:1314:80
|
2020-10-11 19:50:06 +02:00
|
|
|
restart: always
|
2020-10-04 16:07:55 +02:00
|
|
|
volumes:
|
|
|
|
# So that traefik can listen to the Docker events
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2022-09-09 13:21:44 +02:00
|
|
|
healthcheck:
|
|
|
|
# DON'T
|
|
|
|
# test: "/usr/bin/wget -q -Y off http://localhost:80/about -O /dev/null > /dev/null 2>&1"
|
|
|
|
# DO:
|
|
|
|
test: "/usr/bin/wget -q -Y off http://localhost:80/about -O /dev/null 2>&-"
|
|
|
|
interval: 10s
|
|
|
|
retries: 20
|
2020-10-04 16:07:55 +02:00
|
|
|
|
2020-10-03 21:00:19 +02:00
|
|
|
homepage:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
image: homepage
|
2022-08-02 15:08:18 +02:00
|
|
|
mem_limit: 8m
|
2020-10-03 21:00:19 +02:00
|
|
|
networks:
|
2022-08-02 15:07:02 +02:00
|
|
|
- internal-nw
|
2020-10-11 19:50:06 +02:00
|
|
|
restart: always
|
2020-10-03 21:00:19 +02:00
|
|
|
labels:
|
2020-10-04 16:07:55 +02:00
|
|
|
- traefik.enable=true
|
2022-08-08 15:20:50 +02:00
|
|
|
- traefik.http.services.homepage.loadbalancer.server.port=1314
|
2020-10-14 13:29:03 +02:00
|
|
|
- traefik.http.routers.homepage.rule=Host(`localhost`) || Host(`127.0.0.1`) || Host(`homepage`) || Host(`6426tqrh4y5uobmo5y2csaip3m3avmjegd2kpa24sadekpxglbm34aqd.onion`)
|
2022-01-17 10:29:43 +01:00
|
|
|
|
2020-10-03 21:00:19 +02:00
|
|
|
logging:
|
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: "5m"
|
|
|
|
max-file: "5"
|
2020-10-04 16:07:55 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal-nw:
|
|
|
|
internal: true
|
|
|
|
default:
|
2022-08-02 15:07:02 +02:00
|
|
|
|
|
|
|
...
|