2022-12-04 16:36:59 +00:00
|
|
|
version: "3.8"
|
2022-12-01 13:48:10 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: plane
|
|
|
|
POSTGRES_DB: plane
|
|
|
|
POSTGRES_PASSWORD: plane
|
|
|
|
command: postgres -c 'max_connections=1000'
|
2022-12-04 17:56:58 +00:00
|
|
|
|
2022-12-01 13:48:10 +00:00
|
|
|
redis:
|
|
|
|
image: redis:6.2.7-alpine
|
|
|
|
restart: on-failure
|
|
|
|
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 200mb
|
2022-12-04 17:56:58 +00:00
|
|
|
|
2022-12-09 15:39:54 +00:00
|
|
|
plane-web:
|
|
|
|
image: plane-web
|
|
|
|
container_name: plane-frontend
|
2022-12-01 13:48:10 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2022-12-04 16:36:59 +00:00
|
|
|
dockerfile: ./apps/app/Dockerfile.web
|
2022-12-01 13:48:10 +00:00
|
|
|
restart: always
|
2022-12-02 18:09:03 +00:00
|
|
|
environment:
|
|
|
|
NEXT_PUBLIC_GITHUB_ID: $NEXT_PUBLIC_GITHUB_ID
|
|
|
|
NEXT_PUBLIC_GOOGLE_CLIENTID: $NEXT_PUBLIC_GOOGLE_CLIENTID
|
|
|
|
NEXT_PUBLIC_API_BASE_URL: $NEXT_PUBLIC_API_BASE_URL
|
2022-12-01 13:48:10 +00:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2022-12-04 17:56:58 +00:00
|
|
|
|
2022-12-01 13:48:10 +00:00
|
|
|
|
2022-12-09 15:39:54 +00:00
|
|
|
plane-api:
|
|
|
|
image: plane-api
|
|
|
|
container_name: plane-backend
|
2022-12-01 13:48:10 +00:00
|
|
|
build:
|
|
|
|
context: ./apiserver
|
2022-12-04 16:36:59 +00:00
|
|
|
dockerfile: Dockerfile.api
|
2022-12-01 13:48:10 +00:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
WEB_URL: $WEB_URL
|
2022-12-01 17:29:06 +00:00
|
|
|
PGUSER: plane
|
|
|
|
PGPASSWORD: plane
|
|
|
|
PGHOST: db
|
|
|
|
REDIS_URL: 'redis://redis:6379/'
|
|
|
|
REDIS_HOST: redis
|
|
|
|
REDIS_PORT: 6379
|
2022-12-01 13:48:10 +00:00
|
|
|
SECRET_KEY: $SECRET_KEY
|
2022-12-02 18:09:03 +00:00
|
|
|
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
|
|
|
|
EMAIL_HOST: $EMAIL_HOST
|
|
|
|
EMAIL_HOST_USER: $EMAIL_HOST_USER
|
|
|
|
EMAIL_HOST_PASSWORD: $EMAIL_HOST_PASSWORD
|
2022-12-04 17:56:58 +00:00
|
|
|
|
2022-12-01 13:48:10 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2022-12-01 17:29:06 +00:00
|
|
|
command: ./bin/takeoff
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- redis
|
2022-12-04 17:56:58 +00:00
|
|
|
|
2022-12-09 15:39:54 +00:00
|
|
|
plane-worker:
|
|
|
|
image: plane-api
|
2022-12-04 17:56:58 +00:00
|
|
|
depends_on:
|
2022-12-09 15:39:54 +00:00
|
|
|
- redis
|
|
|
|
command: python manage.py rqworker
|
|
|
|
links:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
WEB_URL: $WEB_URL
|
|
|
|
PGUSER: plane
|
|
|
|
PGPASSWORD: plane
|
|
|
|
PGHOST: db
|
|
|
|
REDIS_URL: 'redis://redis:6379/'
|
|
|
|
REDIS_HOST: redis
|
|
|
|
REDIS_PORT: 6379
|
|
|
|
SECRET_KEY: $SECRET_KEY
|
|
|
|
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
|
|
|
|
EMAIL_HOST: $EMAIL_HOST
|
|
|
|
EMAIL_HOST_USER: $EMAIL_HOST_USER
|
|
|
|
EMAIL_HOST_PASSWORD: $EMAIL_HOST_PASSWORD
|
|
|
|
|
2022-12-01 13:48:10 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|