mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
25 lines
722 B
YAML
25 lines
722 B
YAML
version: '2.2'
|
|
|
|
networks:
|
|
web:
|
|
external:
|
|
name: web
|
|
|
|
services:
|
|
website-marie:
|
|
image: nginx
|
|
labels:
|
|
- "traefik.backend=website-marie"
|
|
- "traefik.docker.network=web"
|
|
- "traefik.frontend.rule=Host:osteopathie.froidmont.org,www.osteopathie.froidmont.org"
|
|
- "traefik.frontend.redirect.regex=^https?://www.osteopathie.froidmont.org/(.*)"
|
|
- "traefik.frontend.redirect.replacement=https://osteopathie.froidmont.org/$${1}"
|
|
- "traefik.enable=true"
|
|
- "traefik.port=80"
|
|
- "traefik.default.protocol=http"
|
|
volumes:
|
|
- /var/lib/website-marie:/usr/share/nginx/html:ro
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
networks:
|
|
- web
|
|
restart: always
|