Skip to content

Instantly share code, notes, and snippets.

@ttamg
Created December 10, 2021 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttamg/ccf3129e8912d3c58c4211f891927e90 to your computer and use it in GitHub Desktop.
Save ttamg/ccf3129e8912d3c58c4211f891927e90 to your computer and use it in GitHub Desktop.
Update backend to receive from Traefik
backend:
build: .
ports:
- 8999:80
env_file: .env
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`app.example.com`)"
- "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls.certresolver=myresolver"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment