forked from github/plane
feat: plane proxy setup (#1181)
* feat: plane proxy setup * dev: remove port mapping from web, api and minio containers
This commit is contained in:
parent
e3da80755c
commit
2511a284eb
@ -53,6 +53,8 @@ GITHUB_CLIENT_SECRET="" # For fetching release notes
|
||||
|
||||
# Settings related to Docker
|
||||
DOCKERIZED=1
|
||||
# set to 1 If using the pre-configured minio setup
|
||||
USE_MINIO=1
|
||||
|
||||
# Nginx Configuration
|
||||
NGINX_PORT=80
|
||||
|
@ -14,8 +14,6 @@ services:
|
||||
NEXT_PUBLIC_SENTRY_DSN: 0
|
||||
NEXT_PUBLIC_ENABLE_OAUTH: 0
|
||||
NEXT_PUBLIC_ENABLE_SENTRY: 0
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
||||
plane-api:
|
||||
container_name: planebackend
|
||||
@ -45,12 +43,10 @@ services:
|
||||
SECRET_KEY: ${SECRET_KEY}
|
||||
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
|
||||
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
|
||||
USE_MINIO: 1
|
||||
USE_MINIO: ${USE_MINIO}
|
||||
depends_on:
|
||||
- plane-db
|
||||
- plane-redis
|
||||
ports:
|
||||
- 8000:8000
|
||||
|
||||
plane-worker:
|
||||
container_name: planerqworker
|
||||
@ -80,7 +76,7 @@ services:
|
||||
SECRET_KEY: ${SECRET_KEY}
|
||||
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
|
||||
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
|
||||
USE_MINIO: 1
|
||||
USE_MINIO: ${USE_MINIO}
|
||||
depends_on:
|
||||
- plane-api
|
||||
- plane-db
|
||||
@ -114,8 +110,6 @@ services:
|
||||
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
|
||||
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}
|
||||
command: server /export --console-address ":9090"
|
||||
ports:
|
||||
- 9000:9000
|
||||
|
||||
createbuckets:
|
||||
image: minio/mc
|
||||
@ -130,11 +124,9 @@ services:
|
||||
"
|
||||
|
||||
# Comment this if you already have a reverse proxy running
|
||||
nginx:
|
||||
container_name: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
plane-proxy:
|
||||
container_name: planeproxy
|
||||
image: makeplane/plane-proxy:latest
|
||||
ports:
|
||||
- ${NGINX_PORT}:80
|
||||
depends_on:
|
||||
|
@ -31,7 +31,7 @@ services:
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: plane.settings.production
|
||||
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
|
||||
REDIS_URL: redis://redis:6379/
|
||||
REDIS_URL: redis://plane-redis:6379/
|
||||
EMAIL_HOST: ${EMAIL_HOST}
|
||||
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
|
||||
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
|
||||
@ -52,7 +52,7 @@ services:
|
||||
SECRET_KEY: ${SECRET_KEY}
|
||||
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
|
||||
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
|
||||
USE_MINIO: 1
|
||||
USE_MINIO: ${USE_MINIO}
|
||||
depends_on:
|
||||
- plane-db
|
||||
- plane-redis
|
||||
@ -67,7 +67,7 @@ services:
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: plane.settings.production
|
||||
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
|
||||
REDIS_URL: redis://redis:6379/
|
||||
REDIS_URL: redis://plane-redis:6379/
|
||||
EMAIL_HOST: ${EMAIL_HOST}
|
||||
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
|
||||
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
|
||||
@ -88,7 +88,7 @@ services:
|
||||
SECRET_KEY: ${SECRET_KEY}
|
||||
DEFAULT_EMAIL: ${DEFAULT_EMAIL}
|
||||
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
|
||||
USE_MINIO: 1
|
||||
USE_MINIO: ${USE_MINIO}
|
||||
depends_on:
|
||||
- plane-api
|
||||
- plane-db
|
||||
@ -108,7 +108,7 @@ services:
|
||||
PGDATA: /var/lib/postgresql/data
|
||||
|
||||
plane-redis:
|
||||
container_name: redis
|
||||
container_name: plane-redis
|
||||
image: redis:6.2.7-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
@ -137,8 +137,8 @@ services:
|
||||
depends_on:
|
||||
- plane-minio
|
||||
|
||||
nginx:
|
||||
container_name: nginx
|
||||
plane-proxy:
|
||||
container_name: planeproxy
|
||||
build:
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
|
Loading…
Reference in New Issue
Block a user