Add Traefik to your Docker Compose file
version: '3.8'
services:
socialsyncs:
##
## Include all the other configuration from the standard compose example.
##
labels:
# Router for main SocialSyncs entrypoint (on port 5000)
- "traefik.http.routers.socialsyncs.rule=Host(`socialsyncs.example.lan`)" # Replace with your domain
- "traefik.http.services.socialsyncs.loadbalancer.server.port=5000" # Internal port for socialsyncs
- "traefik.http.routers.socialsyncs.entrypoints=websecure" # SocialSyncs requires HTTPS
- "traefik.http.routers.socialsyncs.tls=true"
traefik:
image: "traefik:v2.9"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
ports:
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- socialsyncs-network