Commit 2a6744d0 authored by Kevin Daudt's avatar Kevin Daudt 💻

compose: split production settings from app settings

Things like traefik, and the webnetwork are production settings. Put
those settings in a separate file that can be symlinked to
`docker-compose.override.yml` on the production host.
parent 59fd3d46
Pipeline #80277 passed with stages
in 54 seconds
......@@ -11,25 +11,9 @@ services:
- htdocs:/var/www/html
nginx:
image: nginx:1-alpine
restart: always
volumes:
- htdocs:/var/www/html
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
labels:
traefik.enable: "true"
traefik.http.routers.secdb.rule: Host(`secdb.alpinelinux.org`)
traefik.http.routers.secdb.entrypoints: http
traefik.http.routers.secdb.middlewares: redirect
traefik.http.routers.secdb-tls.rule: Host(`secdb.alpinelinux.org`)
traefik.http.routers.secdb-tls.entrypoints: https
traefik.http.routers.secdb-tls.tls: true
traefik.http.middlewares.redirect.redirectscheme.scheme: https
traefik.http.services.secdb.loadbalancer.server.port: 80
networks:
web:
volumes:
aports:
htdocs:
networks:
web:
external: true
version: '3.7'
services:
nginx:
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.secdb.rule: Host(`secdb.alpinelinux.org`)
traefik.http.routers.secdb.entrypoints: https
traefik.http.routers.secdb-tls.tls: true
networks:
web:
networks:
web:
external: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment