initial version
This commit is contained in:
60
docker-compose.yml
Normal file
60
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user