generated from coop-cloud/example
WIP very WIP
This commit is contained in:
parent
0a59a1bb8c
commit
5964bb1893
|
@ -1,6 +1,6 @@
|
||||||
# {{ .Name }}
|
# focalboard
|
||||||
|
|
||||||
{{ .Description }}
|
An open source, self-hosted alternative to Trello, Notion, and Asana.
|
||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
|
|
||||||
|
|
33
compose.yml
33
compose.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue