bramw_baserow/deploy/traefik/docker-compose.yml

30 lines
874 B
YAML

version: '3'
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.7
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
baserow:
image: baserow/baserow:develop-latest
labels:
# Explicitly tell Traefik to expose this container
- "traefik.enable=true"
# The domain the service will respond to
- "traefik.http.routers.baserow.rule=Host(`example.localhost`)"
environment:
- BASEROW_PUBLIC_URL=http://example.localhost
volumes:
- baserow_data:/baserow/data
volumes:
baserow_data: