mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-03-18 21:30:41 +01:00
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
# Maintainer: Mickael "PAPAMICA" Asseline
|
|
# Update: 2024-08-05
|
|
|
|
#& type: 3
|
|
#& title: Focalboard
|
|
#& description: Open source project management for technical teams
|
|
#& note: Website: <a href='https://www.focalboard.com/' target='_blank' rel='noopener'>Focalboard.com</a></br>You need this <a href='https://github.com/mattermost/focalboard/blob/main/docker/config.json' target='_blank' rel='noopener'>config.json</a>
|
|
#& categories: SelfHosted, PAPAMICA
|
|
#& platform: linux
|
|
#& logo: https://static-00.iconduck.com/assets.00/focalboard-icon-213x256-ztsf7cez.png
|
|
|
|
#% SERVICE: Name of the service (No spaces or points) [focalboard]
|
|
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
|
|
#% URL: Service URL (Example: service.papamica.fr or service.com)
|
|
#% DB_USER: Database user (No spaces or points) [focalboard]
|
|
#% DB_PASSWORD: Database user password
|
|
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
|
|
|
|
# Work with Portainer
|
|
version: '2'
|
|
|
|
services:
|
|
focalboard:
|
|
image: mattermost/focalboard
|
|
container_name: $SERVICE
|
|
restart: unless-stopped
|
|
volumes:
|
|
- $DATA_LOCATION/$SERVICE/data:/opt/focalboard/data
|
|
- $DATA_LOCATION/$SERVICE/config.json:/opt/focalboard/config.json
|
|
healthcheck:
|
|
test: ["CMD", "bash", "-c", "exec 5<>/dev/tcp/127.0.0.1/8000"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 3
|
|
depends_on:
|
|
- focalboard-db
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.entrypoints=https"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
|
|
- "traefik.http.routers.$SERVICE.tls=true"
|
|
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
|
|
- "traefik.http.services.$SERVICE.loadbalancer.server.port=8000"
|
|
- "traefik.docker.network=$NETWORK"
|
|
|
|
focalboard-db:
|
|
image: postgres:latest
|
|
container_name: $SERVICE-db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- $DATA_LOCATION/$SERVICE/db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_DB: boards
|
|
POSTGRES_USER: $DB_USER
|
|
POSTGRES_PASSWORD: $DB_PASSWORD
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $DB_USER"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- default
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: $NETWORK |