Initial config

This commit is contained in:
3wc 2021-01-15 21:17:46 +02:00
parent d6edff39af
commit 9eff66bcb2
3 changed files with 6 additions and 12 deletions

View File

@ -1,6 +1,6 @@
TYPE=${REPO_NAME_KEBAB}
TYPE=keyoxide
DOMAIN=${REPO_NAME_KEBAB}.example.com
DOMAIN=keyoxide.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.${REPO_NAME_KEBAB}.example.com`'
#EXTRA_DOMAINS=', `www.keyoxide.example.com`'
LETS_ENCRYPT_ENV=production

View File

@ -1,4 +1,4 @@
zRKeyoxide
# Keyoxide
A modern, secure and privacy-friendly platform to establish your decentralized online identity • https://codeberg.org/keyoxide/web

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: nginx:1.19.2
image: keyoxide/keyoxide:2.4.1
networks:
- proxy
deploy:
@ -11,7 +11,7 @@ services:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
@ -19,12 +19,6 @@ services:
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
networks:
proxy: