homepage/docker-compose.yml
surtur 5317325ab0
Some checks failed
continuous-integration/drone/push Build is failing
feat: use traefik for loadbalancing
commit 384b118
    refactor: remove redundant ipv6 enablement in env

    * it is already enabled by default, as witnessed by this error message:
    10-listen-on-ipv6-by-default.sh: error: IPv6 listen already enabled

commit abfd7b2
    add: loadbalance using traefik
2020-10-04 16:07:55 +02:00

37 lines
785 B
YAML

version: '3'
services:
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
homepage:
build:
context: .
image: homepage
networks:
- internal-nw
restart: unless-stopped
scale: 4
labels:
- traefik.enable=true
- traefik.http.services.homepage.loadbalancer.server.port=80
- traefik.http.routers.homepage.rule=Host(`localhost`)
logging:
driver: json-file
options:
max-size: "5m"
max-file: "5"
networks:
internal-nw:
internal: true
default: