homepage/docker-compose.yml
wanderer 2efd79e1e4
All checks were successful
continuous-integration/drone/push Build is passing
fix: docker-compose build issue (#20)
chore: add scaling param to the .drone.yml

fix: issue when dc build fails due to scale

Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #20
Co-Authored-By: wanderer <wanderer@noreply.git.dotya.ml>
Co-Committed-By: wanderer <wanderer@noreply.git.dotya.ml>
2020-10-04 16:29:51 +02:00

36 lines
772 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
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: