2019-10-01 04:18:33 +05:00
|
|
|
services:
|
|
|
|
planka:
|
2025-05-27 23:37:47 +02:00
|
|
|
image: ghcr.io/plankanban/planka:2.0.0-rc.3
|
2024-02-06 00:48:21 +01:00
|
|
|
restart: on-failure
|
2019-10-01 04:18:33 +05:00
|
|
|
volumes:
|
2025-05-10 02:09:06 +02:00
|
|
|
- favicons:/app/public/favicons
|
2020-04-21 05:04:34 +05:00
|
|
|
- user-avatars:/app/public/user-avatars
|
2025-05-10 02:09:06 +02:00
|
|
|
- background-images:/app/public/background-images
|
2022-04-26 22:20:20 +05:00
|
|
|
- attachments:/app/private/attachments
|
2025-06-02 13:39:10 -04:00
|
|
|
# Optionally override this to your user/group
|
|
|
|
# user: 1000:1000
|
|
|
|
# tmpfs:
|
|
|
|
# - /app/.tmp:mode=770,uid=1000,gid=1000
|
2019-10-01 04:18:33 +05:00
|
|
|
ports:
|
|
|
|
- 3000:1337
|
|
|
|
environment:
|
|
|
|
- BASE_URL=http://localhost:3000
|
|
|
|
- DATABASE_URL=postgresql://postgres@postgres/planka
|
2025-05-15 19:32:37 +02:00
|
|
|
|
|
|
|
# Optionally store the database password in secrets:
|
|
|
|
# - DATABASE_URL=postgresql://postgres:$${DATABASE_PASSWORD}@postgres/planka
|
|
|
|
# - DATABASE_PASSWORD__FILE=/run/secrets/database_password
|
|
|
|
# And add the following to the service:
|
|
|
|
# secrets:
|
|
|
|
# - database_password
|
|
|
|
|
2019-10-04 04:19:46 +05:00
|
|
|
- SECRET_KEY=notsecretkey
|
2025-05-15 19:32:37 +02:00
|
|
|
# Optionally store in secrets - then SECRET_KEY should not be set
|
|
|
|
# - SECRET_KEY__FILE=/run/secrets/secret_key
|
2023-03-06 13:54:52 +01:00
|
|
|
|
2025-04-22 15:41:01 +02:00
|
|
|
# - LOG_LEVEL=warn
|
|
|
|
|
2025-05-13 16:29:31 +02:00
|
|
|
# - TRUST_PROXY=true
|
2023-10-20 21:52:12 +02:00
|
|
|
# - TOKEN_EXPIRES_IN=365 # In days
|
2023-09-12 01:12:38 +02:00
|
|
|
|
2023-03-06 13:54:52 +01:00
|
|
|
# related: https://github.com/knex/knex/issues/2354
|
2025-05-15 19:32:37 +02:00
|
|
|
# As knex does not pass query parameters from the connection string,
|
|
|
|
# we have to use environment variables in order to pass the desired values, e.g.
|
2023-03-06 13:54:52 +01:00
|
|
|
# - PGSSLMODE=<value>
|
|
|
|
|
|
|
|
# Configure knex to accept SSL certificates
|
|
|
|
# - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
|
2023-10-17 19:18:19 +02:00
|
|
|
|
2025-05-15 19:32:37 +02:00
|
|
|
# Used for per-board notifications
|
|
|
|
# - DEFAULT_LANGUAGE=en-US
|
2025-05-10 02:09:06 +02:00
|
|
|
|
2025-05-15 19:32:37 +02:00
|
|
|
# Do not comment out DEFAULT_ADMIN_EMAIL if you want to prevent this user from being edited/deleted
|
|
|
|
# - DEFAULT_ADMIN_EMAIL=demo@demo.demo
|
2023-10-20 21:52:12 +02:00
|
|
|
# - DEFAULT_ADMIN_PASSWORD=demo
|
2025-05-15 19:32:37 +02:00
|
|
|
# Optionally store in secrets - then DEFAULT_ADMIN_PASSWORD should not be set
|
|
|
|
# - DEFAULT_ADMIN_PASSWORD__FILE=/run/secrets/default_admin_password
|
2023-10-20 21:52:12 +02:00
|
|
|
# - DEFAULT_ADMIN_NAME=Demo Demo
|
|
|
|
# - DEFAULT_ADMIN_USERNAME=demo
|
|
|
|
|
2025-07-07 21:35:37 +02:00
|
|
|
# - INTERNAL_ACCESS_TOKEN=
|
2025-05-10 02:09:06 +02:00
|
|
|
# - ACTIVE_USERS_LIMIT=
|
2025-05-15 19:32:37 +02:00
|
|
|
|
|
|
|
# Set to true to show more detailed authentication error messages.
|
|
|
|
# It should not be enabled without a rate limiter for security reasons.
|
|
|
|
# - SHOW_DETAILED_AUTH_ERRORS=false
|
2024-06-14 16:38:06 +02:00
|
|
|
|
2024-11-12 15:58:22 +01:00
|
|
|
# - S3_ENDPOINT=
|
|
|
|
# - S3_REGION=
|
|
|
|
# - S3_ACCESS_KEY_ID=
|
|
|
|
# - S3_SECRET_ACCESS_KEY=
|
2025-05-15 19:32:37 +02:00
|
|
|
# Optionally store in secrets - then S3_SECRET_ACCESS_KEY should not be set
|
|
|
|
# - S3_SECRET_ACCESS_KEY__FILE=/run/secrets/s3_secret_access_key
|
2024-11-12 15:58:22 +01:00
|
|
|
# - S3_BUCKET=
|
|
|
|
# - S3_FORCE_PATH_STYLE=true
|
|
|
|
|
2023-10-17 19:18:19 +02:00
|
|
|
# - OIDC_ISSUER=
|
|
|
|
# - OIDC_CLIENT_ID=
|
2023-10-19 14:39:21 +02:00
|
|
|
# - OIDC_CLIENT_SECRET=
|
2025-05-15 19:32:37 +02:00
|
|
|
# Optionally store in secrets - then OIDC_CLIENT_SECRET should not be set
|
|
|
|
# - OIDC_CLIENT_SECRET__FILE=/run/secrets/oidc_client_secret
|
2024-07-16 12:33:38 +02:00
|
|
|
# - OIDC_ID_TOKEN_SIGNED_RESPONSE_ALG=
|
|
|
|
# - OIDC_USERINFO_SIGNED_RESPONSE_ALG=
|
2023-10-17 19:18:19 +02:00
|
|
|
# - OIDC_SCOPES=openid email profile
|
2024-07-16 12:33:38 +02:00
|
|
|
# - OIDC_RESPONSE_MODE=fragment
|
|
|
|
# - OIDC_USE_DEFAULT_RESPONSE_MODE=true
|
2023-10-17 19:18:19 +02:00
|
|
|
# - OIDC_ADMIN_ROLES=admin
|
2025-06-30 12:07:44 +02:00
|
|
|
# - OIDC_PROJECT_OWNER_ROLES=project_owner
|
|
|
|
# - OIDC_BOARD_USER_ROLES=board_user
|
2024-09-20 16:19:54 +02:00
|
|
|
# - OIDC_CLAIMS_SOURCE=userinfo
|
2024-01-25 23:01:59 +01:00
|
|
|
# - OIDC_EMAIL_ATTRIBUTE=email
|
|
|
|
# - OIDC_NAME_ATTRIBUTE=name
|
|
|
|
# - OIDC_USERNAME_ATTRIBUTE=preferred_username
|
2023-10-17 19:18:19 +02:00
|
|
|
# - OIDC_ROLES_ATTRIBUTE=groups
|
2024-01-25 23:01:59 +01:00
|
|
|
# - OIDC_IGNORE_USERNAME=true
|
2023-10-25 23:01:35 +02:00
|
|
|
# - OIDC_IGNORE_ROLES=true
|
2024-02-01 00:31:15 +01:00
|
|
|
# - OIDC_ENFORCED=true
|
2024-04-08 00:33:29 +02:00
|
|
|
|
|
|
|
# Email Notifications (https://nodemailer.com/smtp/)
|
|
|
|
# - SMTP_HOST=
|
|
|
|
# - SMTP_PORT=587
|
2024-05-18 14:02:21 +01:00
|
|
|
# - SMTP_NAME=
|
2024-04-08 00:33:29 +02:00
|
|
|
# - SMTP_SECURE=true
|
|
|
|
# - SMTP_USER=
|
|
|
|
# - SMTP_PASSWORD=
|
2025-05-15 19:32:37 +02:00
|
|
|
# Optionally store in secrets - then SMTP_PASSWORD should not be set
|
|
|
|
# - SMTP_PASSWORD__FILE=/run/secrets/smtp_password
|
2024-04-08 00:33:29 +02:00
|
|
|
# - SMTP_FROM="Demo Demo" <demo@demo.demo>
|
2024-10-02 14:10:31 +02:00
|
|
|
# - SMTP_TLS_REJECT_UNAUTHORIZED=false
|
2019-10-01 04:18:33 +05:00
|
|
|
depends_on:
|
2024-02-06 00:48:21 +01:00
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2019-10-01 04:18:33 +05:00
|
|
|
|
|
|
|
postgres:
|
2024-10-22 20:22:23 +02:00
|
|
|
image: postgres:16-alpine
|
2024-02-06 00:48:21 +01:00
|
|
|
restart: on-failure
|
2019-10-01 04:18:33 +05:00
|
|
|
volumes:
|
|
|
|
- db-data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=planka
|
2020-04-21 05:04:34 +05:00
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
2024-02-06 00:48:21 +01:00
|
|
|
healthcheck:
|
2024-11-12 15:58:22 +01:00
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
|
2024-02-06 00:48:21 +01:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2019-10-01 04:18:33 +05:00
|
|
|
|
|
|
|
volumes:
|
2025-05-10 02:09:06 +02:00
|
|
|
favicons:
|
2020-04-21 05:04:34 +05:00
|
|
|
user-avatars:
|
2025-05-10 02:09:06 +02:00
|
|
|
background-images:
|
2020-04-21 05:04:34 +05:00
|
|
|
attachments:
|
2019-10-01 04:18:33 +05:00
|
|
|
db-data:
|