Feat: Dockerizing using nginx reverse proxy (#280)
* minor docker fixes * eslint config changes * dockerfile changes to backend and frontend * oauth enabled env flag * sentry enabled env flag * build: get alternatives for environment variables and static file storage * build: automatically generate random secret key if not provided * build: update docker compose for next url env add channels to requirements for asgi server and save files in local machine for docker environment * build: update nginx conf for backend base url update backend dockerfile to make way for static file uploads * feat: create a default user with given values else default values * chore: update docker python version and other dependency version in docker * build: update local settings file to run it in docker * fix: update script to run in default production setting * fix: env variable changes and env setup shell script added * Added Single Dockerfile to run the Entire plane application * docs build fixes --------- Co-authored-by: Narayana <narayana.vadapalli1996@gmail.com> Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
This commit is contained in:
parent
33e2986062
commit
bdca84bd09
47 changed files with 9613 additions and 11018 deletions
|
|
@ -1,8 +1,19 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
nginx:
|
||||
container_name: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 80:80
|
||||
depends_on:
|
||||
# - plane-web
|
||||
- plane-api
|
||||
db:
|
||||
image: postgres:12-alpine
|
||||
container_name: db
|
||||
restart: always
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
|
|
@ -12,31 +23,28 @@ services:
|
|||
POSTGRES_PASSWORD: plane
|
||||
command: postgres -c 'max_connections=1000'
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
- 5432:5432
|
||||
redis:
|
||||
image: redis:6.2.7-alpine
|
||||
container_name: redis
|
||||
restart: always
|
||||
ports:
|
||||
- "6379:6379"
|
||||
- 6379:6379
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
|
||||
plane-web:
|
||||
image: plane-web
|
||||
container_name: plane-frontend
|
||||
container_name: planefrontend
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./apps/app/Dockerfile.web
|
||||
restart: always
|
||||
command: node apps/app/server.js
|
||||
env_file:
|
||||
- ./apps/app/.env
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
||||
plane-api:
|
||||
image: plane-api
|
||||
container_name: plane-backend
|
||||
container_name: planebackend
|
||||
build:
|
||||
context: ./apiserver
|
||||
dockerfile: Dockerfile.api
|
||||
|
|
@ -45,7 +53,6 @@ services:
|
|||
- 8000:8000
|
||||
env_file:
|
||||
- ./apiserver/.env
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
|
|
@ -53,10 +60,11 @@ services:
|
|||
links:
|
||||
- db:db
|
||||
- redis:redis
|
||||
|
||||
plane-worker:
|
||||
image: plane-api
|
||||
container_name: plane-rqworker
|
||||
container_name: planerqworker
|
||||
build:
|
||||
context: ./apiserver
|
||||
dockerfile: Dockerfile.api
|
||||
depends_on:
|
||||
- redis
|
||||
- db
|
||||
|
|
@ -67,7 +75,6 @@ services:
|
|||
- db:db
|
||||
env_file:
|
||||
- ./apiserver/.env
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
redisdata:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue