2020-10-03 21:00:19 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
2020-10-04 16:07:55 +02:00
|
|
|
reverse-proxy:
|
|
|
|
image: traefik
|
|
|
|
command: --api=false --api.dashboard=false --providers.docker
|
|
|
|
networks:
|
|
|
|
- internal-nw
|
|
|
|
- default
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:1314:80
|
|
|
|
volumes:
|
|
|
|
# So that traefik can listen to the Docker events
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
2020-10-03 21:00:19 +02:00
|
|
|
homepage:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
image: homepage
|
|
|
|
networks:
|
2020-10-04 16:07:55 +02:00
|
|
|
- internal-nw
|
2020-10-03 21:00:19 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
2020-10-04 16:07:55 +02:00
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.services.homepage.loadbalancer.server.port=80
|
|
|
|
- traefik.http.routers.homepage.rule=Host(`localhost`)
|
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:
|