initial version

This commit is contained in:
2024-02-11 21:48:33 +01:00
parent 843708d4eb
commit 5fa39accc7
4 changed files with 142 additions and 1 deletions

60
docker-compose.yml Normal file
View File

@@ -0,0 +1,60 @@
# https://docs.planka.cloud
# https://github.com/plankanban/planka
# https://docs.planka.cloud/docs/installation/docker/production_version
---
version: '3'
services:
planka:
image: ghcr.io/plankanban/planka:latest
container_name: planka
restart: on-failure
env_file:
- .env
volumes:
- ${BASEDIR:-.}/files/user-avatars:/app/public/user-avatars
- ${BASEDIR:-.}/files/project-background-images:/app/public/project-background-images
- ${BASEDIR:-.}/files/attachments:/app/private/attachments
ports:
- 3000:1337
depends_on:
postgres:
condition: service_healthy
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
update_config:
parallelism: 1
delay: 10s
environment:
- DATABASE_URL=postgresql://postgres@postgres/planka
plankadb:
image: postgres:14-alpine
container_name: plankadb
restart: on-failure
volumes:
- ${BASEDIR:-.}/files/db-data:/var/lib/postgresql/data
network:
- backend
environment:
- POSTGRES_DB=planka
- POSTGRES_HOST_AUTH_METHOD=trust
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
update_config:
parallelism: 1
delay: 10s
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
interval: 10s
timeout: 5s
retries: 5
networks:
backend:
name: ${INTRANET:-backend}
external: true