chore: update single click deployments (#1141)

* chore: update single click deployments

* dev: update environment variables
This commit is contained in:
pablohashescobar 2023-05-26 14:04:15 +05:30 committed by GitHub
parent f80b3f1eb1
commit cd821a934d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 23 deletions

View File

@ -45,4 +45,10 @@ GITHUB_CLIENT_SECRET="" # For fetching release notes
# Settings related to Docker # Settings related to Docker
DOCKERIZED=1 DOCKERIZED=1
# Database Settings
PGUSER="plane"
PGPASSWORD="plane"
PGHOST="plane-db"
PGDATABASE="plane"
# Auto generated and Required that will be generated from setup.sh # Auto generated and Required that will be generated from setup.sh

View File

@ -37,6 +37,14 @@
"description": "Email host to send emails from", "description": "Email host to send emails from",
"value": "" "value": ""
}, },
"EMAIL_FROM": {
"description": "Email Sender",
"value": ""
},
"EMAIL_PORT": {
"description": "The default Email PORT to use",
"value": "587"
},
"AWS_REGION": { "AWS_REGION": {
"description": "AWS Region to use for S3", "description": "AWS Region to use for S3",
"value": "false" "value": "false"
@ -49,30 +57,22 @@
"description": "AWS Secret Access Key to use for S3", "description": "AWS Secret Access Key to use for S3",
"value": "" "value": ""
}, },
"SENTRY_DSN": {
"description": "",
"value": ""
},
"AWS_S3_BUCKET_NAME": { "AWS_S3_BUCKET_NAME": {
"description": "AWS Bucket Name to use for S3", "description": "AWS Bucket Name to use for S3",
"value": "" "value": ""
}, },
"SENTRY_DSN": {
"description": "",
"value": ""
},
"WEB_URL": { "WEB_URL": {
"description": "Web URL for Plane", "description": "Web URL for Plane this will be used for redirections in the emails",
"value": "" "value": ""
}, },
"GITHUB_CLIENT_SECRET": { "GITHUB_CLIENT_SECRET": {
"description": "Github Client Secret", "description": "Github Client Secret",
"value": "" "value": ""
}, },
"NEXT_PUBLIC_GITHUB_ID": {
"description": "Next Public Github ID",
"value": ""
},
"NEXT_PUBLIC_GOOGLE_CLIENTID": {
"description": "Next Public Google Client ID",
"value": ""
},
"NEXT_PUBLIC_API_BASE_URL": { "NEXT_PUBLIC_API_BASE_URL": {
"description": "Next Public API Base URL", "description": "Next Public API Base URL",
"value": "" "value": ""

4
deploy/heroku/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
# Deploy the Plane image
FROM makeplane/plane
LABEL maintainer="engineering@plane.so"

View File

@ -24,7 +24,7 @@ services:
command: ./bin/takeoff command: ./bin/takeoff
environment: environment:
DJANGO_SETTINGS_MODULE: plane.settings.production DJANGO_SETTINGS_MODULE: plane.settings.production
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@plane-db:5432/plane DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
REDIS_URL: redis://plane-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}
@ -53,7 +53,7 @@ services:
command: ./bin/worker command: ./bin/worker
environment: environment:
DJANGO_SETTINGS_MODULE: plane.settings.production DJANGO_SETTINGS_MODULE: plane.settings.production
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@plane-db:5432/plane DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
REDIS_URL: redis://plane-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}
@ -81,7 +81,7 @@ services:
command: postgres -c 'max_connections=1000' command: postgres -c 'max_connections=1000'
environment: environment:
POSTGRES_USER: ${PGUSER} POSTGRES_USER: ${PGUSER}
POSTGRES_DB: plane POSTGRES_DB: ${PGDATABASE}
POSTGRES_PASSWORD: ${PGPASSWORD} POSTGRES_PASSWORD: ${PGPASSWORD}
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data

View File

@ -30,7 +30,7 @@ services:
command: ./bin/takeoff command: ./bin/takeoff
environment: environment:
DJANGO_SETTINGS_MODULE: plane.settings.production DJANGO_SETTINGS_MODULE: plane.settings.production
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@plane-db:5432/plane DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
REDIS_URL: redis://redis:6379/ REDIS_URL: redis://redis:6379/
EMAIL_HOST: ${EMAIL_HOST} EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER} EMAIL_HOST_USER: ${EMAIL_HOST_USER}
@ -60,7 +60,7 @@ services:
command: ./bin/worker command: ./bin/worker
environment: environment:
DJANGO_SETTINGS_MODULE: plane.settings.production DJANGO_SETTINGS_MODULE: plane.settings.production
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@plane-db:5432/plane DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}:5432/${PGDATABASE}
REDIS_URL: redis://redis:6379/ REDIS_URL: redis://redis:6379/
EMAIL_HOST: ${EMAIL_HOST} EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER} EMAIL_HOST_USER: ${EMAIL_HOST_USER}
@ -91,11 +91,9 @@ services:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
environment: environment:
POSTGRES_USER: ${PGUSER} POSTGRES_USER: ${PGUSER}
POSTGRES_DB: plane POSTGRES_DB: ${PGDATABASE}
POSTGRES_PASSWORD: ${PGPASSWORD} POSTGRES_PASSWORD: ${PGPASSWORD}
PGDATA: /var/lib/postgresql/data PGDATA: /var/lib/postgresql/data
ports:
- 5432:5432
plane-redis: plane-redis:
container_name: redis container_name: redis
@ -103,8 +101,6 @@ services:
restart: always restart: always
volumes: volumes:
- redisdata:/data - redisdata:/data
ports:
- 6379:6379
plane-minio: plane-minio:
container_name: plane-minio container_name: plane-minio

3
heroku.yml Normal file
View File

@ -0,0 +1,3 @@
build:
docker:
web: deploy/heroku/Dockerfile