Skip to content

Commit 31b7bec

Browse files
committed
Extract .env.prod example
1 parent 2f06097 commit 31b7bec

File tree

3 files changed

+18
-21
lines changed

3 files changed

+18
-21
lines changed

.env.prod.dist

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DJANGO_SETTINGS_MODULE=root.settings.prod
2+
CELERY_BROKER_URL=redis://redis:6379/0
3+
DB_CYPHER_KEY=pleasechangeme
4+
SECRET_KEY=pleasechangeme
5+
6+
7+
DATABASE_URL=postgres://postgres@db:5432/postgres

RELEASE.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Release Process
22

3-
1. Update changelog
4-
2. Bump version following https://semver.org/
5-
3. Tag and create a Github release. A new Docker image will automatically be generated on https://cloud.docker.com/u/theodofr/repository/docker/theodofr/falco/tags
3+
1. Update changelog.
4+
2. Bump version following https://semver.org/.
5+
3. Tag and create a Github release.
66

7+
A new Docker image will automatically be built on https://cloud.docker.com/u/theodofr/repository/docker/theodofr/falco/tags.

docker-compose.prod.yaml

+7-18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ services:
44
db:
55
image: postgres:10
66

7+
redis:
8+
image: redis:5.0-alpine
9+
710
backend:
811
image: theodofr/falco:nightly
912
command: gunicorn --bind 0.0.0.0:8000 --chdir /code --workers 2 --access-logfile - --error-logfile - -c root/gunicorn.py root.wsgi:application
@@ -12,29 +15,15 @@ services:
1215
links:
1316
- db
1417
- redis
15-
environment:
16-
DJANGO_SETTINGS_MODULE: root.settings.prod
17-
CELERY_BROKER_URL: redis://redis:6379/0
18-
DB_CYPHER_KEY: pleasechangeme
19-
SECRET_KEY: pleasechangeme
20-
EMAIL_FROM: [email protected]
21-
22-
DATABASE_URL: "postgres://postgres@db:5432/postgres"
18+
env_file:
19+
- .env.prod
2320

24-
redis:
25-
image: redis
2621

2722
celery:
2823
image: theodofr/falco:nightly
2924
command: celery worker -A root.celery -B -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler -c 4
3025
links:
3126
- db
3227
- redis
33-
environment:
34-
DJANGO_SETTINGS_MODULE: root.settings.prod
35-
CELERY_BROKER_URL: redis://redis:6379/0
36-
DB_CYPHER_KEY: pleasechangeme
37-
SECRET_KEY: pleasechangeme
38-
EMAIL_FROM: [email protected]
39-
40-
DATABASE_URL: "postgres://postgres@db:5432/postgres"
28+
env_file:
29+
- .env.prod

0 commit comments

Comments
 (0)