From 308501d8444f3bc7e36da96c9142bd1466f2e949 Mon Sep 17 00:00:00 2001 From: codevadym Date: Mon, 9 Dec 2024 15:36:45 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=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 | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 Planka diff --git a/Planka b/Planka new file mode 100644 index 0000000..463e8a6 --- /dev/null +++ b/Planka @@ -0,0 +1,133 @@ +Plnka install + +1. Получаем права админа +sudo su +2. Создаем сеть для planka +docker network create frontend +3. Создаем файл docker-compose +sudo nano docker-compose.yml +4. Вставляем содержимое в файл + +version: '3' + +services: + planka: + image: ghcr.io/plankanban/planka:latest + restart: on-failure + volumes: + - user-avatars:/app/public/user-avatars + - project-background-images:/app/public/project-background-images + - attachments:/app/private/attachments + ports: + - 3250:1337 + environment: + - BASE_URL=https://planka.codevadym.xyz + - DATABASE_URL=postgresql://postgres@postgres/planka + - SECRET_KEY=4de586e8e84ed577a251bed47c7d22c1c93712f52ac7750961cee3730077049ddaa714c003b9c146ea825bc3e2a365dde59222bdd8ec33e36ebd09b51da8d144 + + # - TRUST_PROXY=0 + # - 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. + # - 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 + + # - 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 + + # - S3_ENDPOINT= + # - S3_REGION= + # - S3_ACCESS_KEY_ID= + # - S3_SECRET_ACCESS_KEY= + # - S3_BUCKET= + # - S3_FORCE_PATH_STYLE=true + + # - OIDC_ISSUER= + # - OIDC_CLIENT_ID= + # - 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_CLAIMS_SOURCE=userinfo + # - OIDC_EMAIL_ATTRIBUTE=email + # - OIDC_NAME_ATTRIBUTE=name + # - OIDC_USERNAME_ATTRIBUTE=preferred_username + # - OIDC_ROLES_ATTRIBUTE=groups + # - OIDC_IGNORE_USERNAME=true + # - OIDC_IGNORE_ROLES=true + # - OIDC_ENFORCED=true + + # Email Notifications (https://nodemailer.com/smtp/) + # - SMTP_HOST= + # - SMTP_PORT=587 + # - SMTP_NAME= + # - SMTP_SECURE=true + # - SMTP_USER= + # - 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 + volumes: + - db-data:/var/lib/postgresql/data + environment: + - POSTGRES_DB=planka + - POSTGRES_HOST_AUTH_METHOD=trust + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres -d planka"] + interval: 10s + timeout: 5s + retries: 5 + networks: + - backend + +volumes: + user-avatars: + project-background-images: + attachments: + db-data: +networks: + frontend: + external: true + backend: + internal: true + +5. Настраиваем Nginx Proxy Manager +Обязательно ставим галочку WebSocket support!!!!! \ No newline at end of file