31 lines
753 B
YAML
Executable File
31 lines
753 B
YAML
Executable File
version: '3.5'
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: traefik_default
|
|
|
|
services:
|
|
web:
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.bundesdata.rule=Host(`bundesdata.${DOMAIN}`)"
|
|
- "traefik.http.routers.bundesdata.entrypoints=websecure"
|
|
- "traefik.http.routers.bundesdata.tls.certResolver=myresolver"
|
|
|
|
db:
|
|
networks:
|
|
- default
|
|
|
|
nginx:
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.static-http.entrypoints=websecure"
|
|
- "traefik.http.routers.static-http.rule=Host(`bundesdata.${DOMAIN}`) && PathPrefix(`/static`)"
|
|
- "traefik.http.routers.static-http.tls.certresolver=mytlschallenge"
|
|
|