2023-04-08 18:51:40 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
2023-07-11 08:00:55 +00:00
|
|
|
x-api-and-worker-env: &api-and-worker-env
|
|
|
|
DEBUG: ${DEBUG}
|
|
|
|
SENTRY_DSN: ${SENTRY_DSN}
|
|
|
|
DJANGO_SETTINGS_MODULE: plane.settings.production
|
|
|
|
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
|
|
|
|
REDIS_URL: redis://plane-redis:6379/
|
|
|
|
EMAIL_HOST: ${EMAIL_HOST}
|
|
|
|
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
|
|
|
|
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
|
|
|
|
EMAIL_PORT: ${EMAIL_PORT}
|
|
|
|
EMAIL_FROM: ${EMAIL_FROM}
|
|
|
|
EMAIL_USE_TLS: ${EMAIL_USE_TLS}
|
|
|
|
EMAIL_USE_SSL: ${EMAIL_USE_SSL}
|
|
|
|
AWS_REGION: ${AWS_REGION}
|
|
|
|
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
|
|
|
|
AWS_S3_BUCKET_NAME: ${AWS_S3_BUCKET_NAME}
|
|
|
|
AWS_S3_ENDPOINT_URL: ${AWS_S3_ENDPOINT_URL}
|
|
|
|
FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT}
|
|
|
|
WEB_URL: ${WEB_URL}
|
|
|
|
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
|
|
|
|
DISABLE_COLLECTSTATIC: 1
|
|
|
|
DOCKERIZED: 1
|
|
|
|
OPENAI_API_KEY: ${OPENAI_API_KEY}
|
|
|
|
GPT_ENGINE: ${GPT_ENGINE}
|
|
|
|
SECRET_KEY: ${SECRET_KEY}
|
|
|
|
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
|
|
|
|
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
|
|
|
|
USE_MINIO: ${USE_MINIO}
|
|
|
|
ENABLE_SIGNUP: ${ENABLE_SIGNUP}
|
|
|
|
|
2023-04-08 18:51:40 +00:00
|
|
|
services:
|
2023-05-25 05:19:37 +00:00
|
|
|
plane-web:
|
|
|
|
container_name: planefrontend
|
2023-05-26 05:39:59 +00:00
|
|
|
image: makeplane/plane-frontend:latest
|
2023-05-25 05:19:37 +00:00
|
|
|
restart: always
|
|
|
|
command: /usr/local/bin/start.sh
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-25 05:19:37 +00:00
|
|
|
environment:
|
|
|
|
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
|
2023-07-11 08:40:57 +00:00
|
|
|
NEXT_PUBLIC_GOOGLE_CLIENTID: "0"
|
|
|
|
NEXT_PUBLIC_GITHUB_APP_NAME: "0"
|
|
|
|
NEXT_PUBLIC_GITHUB_ID: "0"
|
|
|
|
NEXT_PUBLIC_SENTRY_DSN: "0"
|
|
|
|
NEXT_PUBLIC_ENABLE_OAUTH: "0"
|
|
|
|
NEXT_PUBLIC_ENABLE_SENTRY: "0"
|
|
|
|
NEXT_PUBLIC_ENABLE_SESSION_RECORDER: "0"
|
|
|
|
NEXT_PUBLIC_TRACK_EVENTS: "0"
|
2023-06-16 13:28:08 +00:00
|
|
|
depends_on:
|
|
|
|
- plane-api
|
|
|
|
- plane-worker
|
2023-05-25 05:19:37 +00:00
|
|
|
|
|
|
|
plane-api:
|
|
|
|
container_name: planebackend
|
2023-05-26 05:39:59 +00:00
|
|
|
image: makeplane/plane-backend:latest
|
2023-05-25 05:19:37 +00:00
|
|
|
restart: always
|
|
|
|
command: ./bin/takeoff
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-25 05:19:37 +00:00
|
|
|
environment:
|
2023-07-11 08:00:55 +00:00
|
|
|
<<: *api-and-worker-env
|
2023-05-25 05:19:37 +00:00
|
|
|
depends_on:
|
|
|
|
- plane-db
|
|
|
|
- plane-redis
|
|
|
|
|
|
|
|
plane-worker:
|
2023-07-11 08:40:57 +00:00
|
|
|
container_name: planebgworker
|
2023-05-26 05:39:59 +00:00
|
|
|
image: makeplane/plane-worker:latest
|
2023-05-25 05:19:37 +00:00
|
|
|
restart: always
|
|
|
|
command: ./bin/worker
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-25 05:19:37 +00:00
|
|
|
environment:
|
2023-07-11 08:00:55 +00:00
|
|
|
<<: *api-and-worker-env
|
2023-05-25 05:19:37 +00:00
|
|
|
depends_on:
|
|
|
|
- plane-api
|
|
|
|
- plane-db
|
|
|
|
- plane-redis
|
|
|
|
|
|
|
|
plane-db:
|
|
|
|
container_name: plane-db
|
|
|
|
image: postgres:15.2-alpine
|
|
|
|
restart: always
|
|
|
|
command: postgres -c 'max_connections=1000'
|
2023-07-11 08:40:57 +00:00
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-25 05:19:37 +00:00
|
|
|
environment:
|
2023-05-26 05:39:59 +00:00
|
|
|
POSTGRES_USER: ${PGUSER}
|
2023-05-26 08:34:15 +00:00
|
|
|
POSTGRES_DB: ${PGDATABASE}
|
2023-05-26 05:39:59 +00:00
|
|
|
POSTGRES_PASSWORD: ${PGPASSWORD}
|
2023-07-11 08:40:57 +00:00
|
|
|
PGDATA: /var/lib/postgresql/data
|
2023-05-25 05:19:37 +00:00
|
|
|
|
|
|
|
plane-redis:
|
|
|
|
container_name: plane-redis
|
|
|
|
image: redis:6.2.7-alpine
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- redisdata:/data
|
|
|
|
|
|
|
|
plane-minio:
|
2023-05-26 05:39:59 +00:00
|
|
|
container_name: plane-minio
|
|
|
|
image: minio/minio
|
2023-07-11 08:40:57 +00:00
|
|
|
restart: always
|
|
|
|
command: server /export --console-address ":9090"
|
2023-05-26 05:39:59 +00:00
|
|
|
volumes:
|
|
|
|
- uploads:/export
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-05-26 05:39:59 +00:00
|
|
|
environment:
|
2023-06-06 13:45:42 +00:00
|
|
|
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
|
|
|
|
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}
|
2023-05-25 05:19:37 +00:00
|
|
|
|
|
|
|
createbuckets:
|
2023-05-26 05:39:59 +00:00
|
|
|
image: minio/mc
|
|
|
|
entrypoint: >
|
2023-07-11 08:40:57 +00:00
|
|
|
/bin/sh -c " /usr/bin/mc config host add plane-minio http://plane-minio:9000 \$AWS_ACCESS_KEY_ID \$AWS_SECRET_ACCESS_KEY;
|
|
|
|
/usr/bin/mc mb plane-minio/\$AWS_S3_BUCKET_NAME;
|
|
|
|
/usr/bin/mc anonymous set download plane-minio/\$AWS_S3_BUCKET_NAME; exit 0; "
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
depends_on:
|
|
|
|
- plane-minio
|
2023-05-25 05:19:37 +00:00
|
|
|
|
2023-07-11 08:40:57 +00:00
|
|
|
# Comment this if you already have a reverse proxy running
|
2023-06-05 07:23:04 +00:00
|
|
|
plane-proxy:
|
2023-06-06 13:45:42 +00:00
|
|
|
container_name: planeproxy
|
|
|
|
image: makeplane/plane-proxy:latest
|
|
|
|
ports:
|
2023-07-11 08:40:57 +00:00
|
|
|
- ${NGINX_PORT}:80
|
2023-06-16 13:28:08 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-06-06 13:45:42 +00:00
|
|
|
environment:
|
|
|
|
FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT:-5242880}
|
|
|
|
BUCKET_NAME: ${AWS_S3_BUCKET_NAME:-uploads}
|
|
|
|
depends_on:
|
2023-06-16 13:28:08 +00:00
|
|
|
- plane-web
|
|
|
|
- plane-api
|
2023-05-25 05:19:37 +00:00
|
|
|
|
2023-04-08 18:51:40 +00:00
|
|
|
volumes:
|
2023-05-25 05:19:37 +00:00
|
|
|
pgdata:
|
|
|
|
redisdata:
|
2023-05-26 05:39:59 +00:00
|
|
|
uploads:
|