WIP very WIP

This commit is contained in:
decentral1se 2021-09-20 10:05:20 +02:00
parent 0a59a1bb8c
commit 5964bb1893
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 22 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# {{ .Name }} # focalboard
{{ .Description }} An open source, self-hosted alternative to Trello, Notion, and Asana.
<!-- metadata --> <!-- metadata -->

View File

@ -3,29 +3,36 @@ version: "3.8"
services: services:
app: app:
image: nginx:1.19.2 image: mattermost/focalboard:0.9.0
networks: networks:
- proxy - proxy
- backend
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" db:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" image: "postgres:13"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" secrets:
healthcheck: - db_password
test: ["CMD", "curl", "-f", "http://localhost"] environment:
interval: 30s - POSTGRES_DB=focalboard
timeout: 10s - POSTGRES_USER=focalboard
retries: 10 - POSTGRES_PASSWORD_FILE=/run/secrets/db_password
start_period: 1m volumes:
- db:/var/lib/postgresql/data
networks:
- backend
networks: networks:
proxy: proxy:
external: true external: true
volumes:
db: