lander/docker-compose.yml

31 lines
758 B
YAML
Raw Normal View History

version: '3.4'
services:
lander:
image: 'lander-test'
build:
context: .
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.lander.rule=Host(`lander.docker.localhost`)'
- 'traefik.http.routers.lander.entrypoints=web'
- 'traefik.http.services.lander.loadbalancer.server.port=18080'
environment:
- 'LANDER_API_KEY=test'
volumes:
- './data:/data'
traefik:
image: 'traefik:2.10'
command:
# Enabling Docker provider
- "--api.insecure=true"
- "--providers.docker=true"
- '--entrypoints.web.address=:80'
- "--providers.docker.exposedbydefault=false"
ports:
- '80:80'
- '8080:8080'
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"