feat: plane proxy setup (#1181)

* feat: plane proxy setup

* dev: remove port mapping from web, api and minio containers
This commit is contained in:
pablohashescobar 2023-06-05 12:53:04 +05:30 committed by GitHub
parent e3da80755c
commit 2511a284eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 20 deletions

View File

@ -53,6 +53,8 @@ GITHUB_CLIENT_SECRET="" # For fetching release notes
# Settings related to Docker # Settings related to Docker
DOCKERIZED=1 DOCKERIZED=1
# set to 1 If using the pre-configured minio setup
USE_MINIO=1
# Nginx Configuration # Nginx Configuration
NGINX_PORT=80 NGINX_PORT=80

View File

@ -14,8 +14,6 @@ services:
NEXT_PUBLIC_SENTRY_DSN: 0 NEXT_PUBLIC_SENTRY_DSN: 0
NEXT_PUBLIC_ENABLE_OAUTH: 0 NEXT_PUBLIC_ENABLE_OAUTH: 0
NEXT_PUBLIC_ENABLE_SENTRY: 0 NEXT_PUBLIC_ENABLE_SENTRY: 0
ports:
- 3000:3000
plane-api: plane-api:
container_name: planebackend container_name: planebackend
@ -45,12 +43,10 @@ services:
SECRET_KEY: ${SECRET_KEY} SECRET_KEY: ${SECRET_KEY}
DEFAULT_EMAIL: ${DEFAULT_EMAIL} DEFAULT_EMAIL: ${DEFAULT_EMAIL}
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
USE_MINIO: 1 USE_MINIO: ${USE_MINIO}
depends_on: depends_on:
- plane-db - plane-db
- plane-redis - plane-redis
ports:
- 8000:8000
plane-worker: plane-worker:
container_name: planerqworker container_name: planerqworker
@ -80,7 +76,7 @@ services:
SECRET_KEY: ${SECRET_KEY} SECRET_KEY: ${SECRET_KEY}
DEFAULT_EMAIL: ${DEFAULT_EMAIL} DEFAULT_EMAIL: ${DEFAULT_EMAIL}
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
USE_MINIO: 1 USE_MINIO: ${USE_MINIO}
depends_on: depends_on:
- plane-api - plane-api
- plane-db - plane-db
@ -114,8 +110,6 @@ services:
MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID} MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY} MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}
command: server /export --console-address ":9090" command: server /export --console-address ":9090"
ports:
- 9000:9000
createbuckets: createbuckets:
image: minio/mc image: minio/mc
@ -130,11 +124,9 @@ services:
" "
# Comment this if you already have a reverse proxy running # Comment this if you already have a reverse proxy running
nginx: plane-proxy:
container_name: nginx container_name: planeproxy
build: image: makeplane/plane-proxy:latest
context: ./nginx
dockerfile: Dockerfile
ports: ports:
- ${NGINX_PORT}:80 - ${NGINX_PORT}:80
depends_on: depends_on:

View File

@ -31,7 +31,7 @@ services:
environment: environment:
DJANGO_SETTINGS_MODULE: plane.settings.production DJANGO_SETTINGS_MODULE: plane.settings.production
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE} 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: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER} EMAIL_HOST_USER: ${EMAIL_HOST_USER}
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD} EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
@ -52,7 +52,7 @@ services:
SECRET_KEY: ${SECRET_KEY} SECRET_KEY: ${SECRET_KEY}
DEFAULT_EMAIL: ${DEFAULT_EMAIL} DEFAULT_EMAIL: ${DEFAULT_EMAIL}
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
USE_MINIO: 1 USE_MINIO: ${USE_MINIO}
depends_on: depends_on:
- plane-db - plane-db
- plane-redis - plane-redis
@ -67,7 +67,7 @@ services:
environment: environment:
DJANGO_SETTINGS_MODULE: plane.settings.production DJANGO_SETTINGS_MODULE: plane.settings.production
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE} 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: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER} EMAIL_HOST_USER: ${EMAIL_HOST_USER}
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD} EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
@ -88,7 +88,7 @@ services:
SECRET_KEY: ${SECRET_KEY} SECRET_KEY: ${SECRET_KEY}
DEFAULT_EMAIL: ${DEFAULT_EMAIL} DEFAULT_EMAIL: ${DEFAULT_EMAIL}
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} DEFAULT_PASSWORD: ${DEFAULT_PASSWORD}
USE_MINIO: 1 USE_MINIO: ${USE_MINIO}
depends_on: depends_on:
- plane-api - plane-api
- plane-db - plane-db
@ -108,7 +108,7 @@ services:
PGDATA: /var/lib/postgresql/data PGDATA: /var/lib/postgresql/data
plane-redis: plane-redis:
container_name: redis container_name: plane-redis
image: redis:6.2.7-alpine image: redis:6.2.7-alpine
restart: always restart: always
volumes: volumes:
@ -137,8 +137,8 @@ services:
depends_on: depends_on:
- plane-minio - plane-minio
nginx: plane-proxy:
container_name: nginx container_name: planeproxy
build: build:
context: ./nginx context: ./nginx
dockerfile: Dockerfile dockerfile: Dockerfile