Skip to content

Commit

Permalink
chore: update single click deployments (#1141)
Browse files Browse the repository at this point in the history
* chore: update single click deployments

* dev: update environment variables
  • Loading branch information
pablohashescobar committed May 26, 2023
1 parent f80b3f1 commit cd821a9
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,10 @@ GITHUB_CLIENT_SECRET="" # For fetching release notes
# Settings related to Docker
DOCKERIZED=1

# Database Settings
PGUSER="plane"
PGPASSWORD="plane"
PGHOST="plane-db"
PGDATABASE="plane"

# Auto generated and Required that will be generated from setup.sh
26 changes: 13 additions & 13 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
"description": "Email host to send emails from",
"value": ""
},
"EMAIL_FROM": {
"description": "Email Sender",
"value": ""
},
"EMAIL_PORT": {
"description": "The default Email PORT to use",
"value": "587"
},
"AWS_REGION": {
"description": "AWS Region to use for S3",
"value": "false"
Expand All @@ -49,30 +57,22 @@
"description": "AWS Secret Access Key to use for S3",
"value": ""
},
"SENTRY_DSN": {
"description": "",
"value": ""
},
"AWS_S3_BUCKET_NAME": {
"description": "AWS Bucket Name to use for S3",
"value": ""
},
"SENTRY_DSN": {
"description": "",
"value": ""
},
"WEB_URL": {
"description": "Web URL for Plane",
"description": "Web URL for Plane this will be used for redirections in the emails",
"value": ""
},
"GITHUB_CLIENT_SECRET": {
"description": "Github Client Secret",
"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": {
"description": "Next Public API Base URL",
"value": ""
Expand Down
4 changes: 4 additions & 0 deletions deploy/heroku/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Deploy the Plane image
FROM makeplane/plane

LABEL maintainer="engineering@plane.so"
6 changes: 3 additions & 3 deletions docker-compose-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
command: ./bin/takeoff
environment:
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/
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
Expand Down Expand Up @@ -53,7 +53,7 @@ services:
command: ./bin/worker
environment:
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/
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
Expand Down Expand Up @@ -81,7 +81,7 @@ services:
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_DB: plane
POSTGRES_DB: ${PGDATABASE}
POSTGRES_PASSWORD: ${PGPASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
Expand Down
10 changes: 3 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
command: ./bin/takeoff
environment:
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/
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
Expand Down Expand Up @@ -60,7 +60,7 @@ services:
command: ./bin/worker
environment:
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/
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
Expand Down Expand Up @@ -91,20 +91,16 @@ services:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_DB: plane
POSTGRES_DB: ${PGDATABASE}
POSTGRES_PASSWORD: ${PGPASSWORD}
PGDATA: /var/lib/postgresql/data
ports:
- 5432:5432

plane-redis:
container_name: redis
image: redis:6.2.7-alpine
restart: always
volumes:
- redisdata:/data
ports:
- 6379:6379

plane-minio:
container_name: plane-minio
Expand Down
3 changes: 3 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker:
web: deploy/heroku/Dockerfile

0 comments on commit cd821a9

Please sign in to comment.