Move docker-compose example files in subdirectory

This commit is contained in:
Patrick Jentsch
2022-07-15 12:22:19 +02:00
parent 81e5027544
commit bab98c52a1
4 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,17 @@
version: "3.5"
services:
nopaque:
environment:
- FLASK_ENV=development
ports:
- "5000:5000"
volumes:
# Mount code as volumes
- "./app:/home/nopaque/app"
- "./boot.sh:/home/nopaque/boot.sh"
- "./config.py:/home/nopaque/config.py"
- "./migrations:/home/nopaque/migrations"
- "./nopaque.py:/home/nopaque/nopaque.py"
- "./requirements.txt:/home/nopaque/requirements.txt"
- "./tests:/home/nopaque/tests"

View File

@ -0,0 +1,6 @@
version: "3.5"
services:
nopaque:
environment:
- NOPAQUE_IS_PRIMARY_INSTANCE=False

View File

@ -0,0 +1,35 @@
################################################################################
# Don't forget to set the proxy variables in your nopaque.env #
# Traefik sets the X_FOR, X_HOST, X_PORT and X_PROTO headers by default #
################################################################################
version: "3.5"
networks:
traefik:
external: true
name: "traefik"
services:
nopaque:
labels:
- "traefik.docker.network=traefik"
- "traefik.enable=true"
### <http> ###
- "traefik.http.middlewares.http-nopaque-headers.headers.customrequestheaders.X-Forwarded-Proto=http"
- "traefik.http.routers.http-nopaque.entrypoints=http"
- "traefik.http.routers.http-nopaque.middlewares=http-nopaque-headers, redirect-to-https@file"
# Replace <nopaque-domain> with your domain
- "traefik.http.routers.http-nopaque.rule=Host(`<nopaque-domain>`)"
### </http> ###
### <https> ###
- "traefik.http.middlewares.https-nopaque-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.https-nopaque.entrypoints=https"
- "traefik.http.routers.https-nopaque.middlewares=hsts-header@file, https-nopaque-headers"
# Replace <nopaque-domain> with your domain
- "traefik.http.routers.https-nopaque.rule=Host(`<nopaque-domain>`)"
- "traefik.http.routers.https-nopaque.tls.certresolver=<CERTRESOLVER>"
- "traefik.http.routers.https-nopaque.tls.options=intermediate@file"
### </https> ###
networks:
- default
- traefik