From 1c67d540664b9c748c28d1deb9ecf0aadd93c557 Mon Sep 17 00:00:00 2001 From: codevadym Date: Sat, 26 Jul 2025 20:49:48 +0200 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Planka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Planka | 101 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 56 insertions(+), 45 deletions(-) diff --git a/Planka b/Planka index f4b1c68..b75fe05 100644 --- a/Planka +++ b/Planka @@ -6,58 +6,89 @@ docker network create frontend sudo nano docker-compose.yml 4. Вставляем содержимое в файл -version: '3' - services: planka: - image: ghcr.io/plankanban/planka:latest + image: ghcr.io/plankanban/planka:2.0.0-rc.3 restart: on-failure volumes: + - favicons:/app/public/favicons - user-avatars:/app/public/user-avatars - - project-background-images:/app/public/project-background-images + - background-images:/app/public/background-images - attachments:/app/private/attachments + # Optionally override this to your user/group + # user: 1000:1000 + # tmpfs: + # - /app/.tmp:mode=770,uid=1000,gid=1000 ports: - 3250:1337 environment: - - BASE_URL=https://planka.codevadym.xyz + - BASE_URL=https://planka.thevadim.xyz - DATABASE_URL=postgresql://postgres@postgres/planka - - SECRET_KEY=4de586e8e84ed577a251bed47c7d22c1c93712f52ac7750961cee3730077049ddaa714c003b9c146ea825bc3e2a365dde59222bdd8ec33e36ebd09b51da8d144 - # - TRUST_PROXY=0 + # 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 + + - SECRET_KEY=notsecretkey + # Optionally store in secrets - then SECRET_KEY should not be set + # - SECRET_KEY__FILE=/run/secrets/secret_key + + # - LOG_LEVEL=warn + + # - TRUST_PROXY=true # - TOKEN_EXPIRES_IN=365 # In days # related: https://github.com/knex/knex/issues/2354 - # 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. + # 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. # - PGSSLMODE= # Configure knex to accept SSL certificates # - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false - - DEFAULT_ADMIN_EMAIL=codevadym@gmail.com # Do not remove if you want to prevent this user from being edited/deleted - - DEFAULT_ADMIN_PASSWORD=CERFacaTeRFL - - DEFAULT_ADMIN_NAME=Vadim F - - DEFAULT_ADMIN_USERNAME=codevadym + # Used for per-board notifications + # - DEFAULT_LANGUAGE=en-US - # - SHOW_DETAILED_AUTH_ERRORS=false #Set to true to show more detailed authentication error messages. It should not be enabled without a rate limiter for security reasons. - # - ALLOW_ALL_TO_CREATE_PROJECTS=true + # Do not comment out DEFAULT_ADMIN_EMAIL if you want to prevent this user from being edited/deleted + - DEFAULT_ADMIN_EMAIL=codevadym@gmail.com + # - DEFAULT_ADMIN_PASSWORD=МЕГАПАРОЛЬ + # Optionally store in secrets - then DEFAULT_ADMIN_PASSWORD should not be set + # - DEFAULT_ADMIN_PASSWORD__FILE=/run/secrets/default_admin_password + # - DEFAULT_ADMIN_NAME=Demo Demo + # - DEFAULT_ADMIN_USERNAME=demo + + # - INTERNAL_ACCESS_TOKEN= + # - ACTIVE_USERS_LIMIT= + + # 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 # - S3_ENDPOINT= # - S3_REGION= # - S3_ACCESS_KEY_ID= # - S3_SECRET_ACCESS_KEY= + # Optionally store in secrets - then S3_SECRET_ACCESS_KEY should not be set + # - S3_SECRET_ACCESS_KEY__FILE=/run/secrets/s3_secret_access_key # - S3_BUCKET= # - S3_FORCE_PATH_STYLE=true # - OIDC_ISSUER= # - OIDC_CLIENT_ID= # - OIDC_CLIENT_SECRET= + # Optionally store in secrets - then OIDC_CLIENT_SECRET should not be set + # - OIDC_CLIENT_SECRET__FILE=/run/secrets/oidc_client_secret # - OIDC_ID_TOKEN_SIGNED_RESPONSE_ALG= # - OIDC_USERINFO_SIGNED_RESPONSE_ALG= # - OIDC_SCOPES=openid email profile # - OIDC_RESPONSE_MODE=fragment # - OIDC_USE_DEFAULT_RESPONSE_MODE=true # - OIDC_ADMIN_ROLES=admin + # - OIDC_PROJECT_OWNER_ROLES=project_owner + # - OIDC_BOARD_USER_ROLES=board_user # - OIDC_CLAIMS_SOURCE=userinfo # - OIDC_EMAIL_ATTRIBUTE=email # - OIDC_NAME_ATTRIBUTE=name @@ -74,32 +105,14 @@ services: # - SMTP_SECURE=true # - SMTP_USER= # - SMTP_PASSWORD= + # Optionally store in secrets - then SMTP_PASSWORD should not be set + # - SMTP_PASSWORD__FILE=/run/secrets/smtp_password # - SMTP_FROM="Demo Demo" # - SMTP_TLS_REJECT_UNAUTHORIZED=false - - # Optional fields: accessToken, events, excludedEvents - # - | - # WEBHOOKS=[{ - # "url": "http://localhost:3001", - # "accessToken": "notaccesstoken", - # "events": ["cardCreate", "cardUpdate", "cardDelete"], - # "excludedEvents": ["notificationCreate", "notificationUpdate"] - # }] - - # - SLACK_BOT_TOKEN= - # - SLACK_CHANNEL_ID= - - # - GOOGLE_CHAT_WEBHOOK_URL= - - # - TELEGRAM_BOT_TOKEN= - # - TELEGRAM_CHAT_ID= - # - TELEGRAM_THREAD_ID= depends_on: postgres: condition: service_healthy - networks: - - backend - - frontend + postgres: image: postgres:16-alpine restart: on-failure @@ -113,19 +126,17 @@ services: interval: 10s timeout: 5s retries: 5 - networks: - - backend volumes: + favicons: user-avatars: - project-background-images: + background-images: attachments: db-data: -networks: - frontend: - external: true - backend: - internal: true 5. Настраиваем Nginx Proxy Manager -Обязательно ставим галочку WebSocket support!!!!! \ No newline at end of file +Обязательно ставим галочку WebSocket support!!!!! + +6. И ГЛАВНОЕ УСТАНАВЛИВАЕМ ПАСС админа +docker compose run --rm planka npm run db:create-admin-user +