Skip to content

Instantly share code, notes, and snippets.

@ginomessmer
Created June 30, 2020 18:47
Show Gist options
  • Save ginomessmer/feccfd7d0be6affcee274b8352eafee0 to your computer and use it in GitHub Desktop.
Save ginomessmer/feccfd7d0be6affcee274b8352eafee0 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
gateway:
networks:
- traefik
- default
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.services.gateway.loadbalancer.server.port=80"
- "traefik.http.routers.gateway-secured.rule=Host(`tinf18b4.dev.unidash.top`)"
- "traefik.http.routers.gateway-secured.entrypoints=web-secured"
- "traefik.http.routers.gateway-secured.tls.certresolver=defaultlts"
- "traefik.http.middlewares.gateway.headers.accesscontrolallowmethods=OPTIONS,GET,PATCH,PUT,DELETE"
- "traefik.http.middlewares.gateway.headers.accesscontrolalloworiginlist=*"
- "traefik.http.middlewares.gateway.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.gateway.headers.addvaryheader=true"
auth:
networks:
- default
environment:
- "ConnectionStrings:AuthDbContext=Server=mssql, 1433;Database=Auth;User=sa;Password=yourStrong!Password123;"
timetable:
networks:
- default
environment:
- "ConnectionStrings:TimeTableDbContext=Server=mssql, 1433;Database=TimeTable;User=sa;Password=yourStrong!Password123;"
- "TimeTable:UpstreamICalUrl=https://rapla.dhbw-karlsruhe.de/rapla?page=ical&user=eisenbiegler&file=TINF18B4"
canteen:
networks:
- default
chat:
networks:
- default
mssql:
networks:
- default
environment:
- ACCEPT_EULA=Y
# This is for **demo purposes** only: don't store your secrets in compose files.
# Instead, use Docker secrets or an equivilant secret manager.
- SA_PASSWORD=yourStrong!Password123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment