Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages & setup docker-compose to allow override.env file #239

Merged
merged 3 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ coverage.*
# Environment variables
.env
.envrc
override.env
lorenyu marked this conversation as resolved.
Show resolved Hide resolved

# mypy
.mypy_cache
Expand Down
6 changes: 5 additions & 1 deletion app/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ services:
- RUN_USER=${RUN_USER:-app}
command: ["poetry", "run", "flask", "--app", "src.app", "run", "--host", "0.0.0.0", "--port", "8080", "--reload"]
container_name: main-app
env_file: local.env
env_file:
- path: ./local.env
required: true
- path: ./override.env
required: false
ports:
- 8080:8080
volumes:
Expand Down
7 changes: 7 additions & 0 deletions app/local.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Local environment variables
# Used by docker-compose and it can be loaded
# by calling load_local_env_vars() from app/src/util/local.py
#
# To override values for your own personal local development
# create an override.env file in the same directory.
# Any environment variables defined in that file will
# take precedence over those defined here.
#
# See /docs/app/README.md for further details

ENVIRONMENT=local
PORT=8080
Expand Down
Loading
Loading