Skip to content

Commit

Permalink
Update docker secret keys management (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
GDay authored Mar 29, 2024
1 parent c570caa commit a16c417
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions .example_env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DEBUG=True
SECRET_KEY=somethingsupersecret
DEBUG_LOGGING=True
BASE_URL=http://0.0.0.0:8000
DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
pipenv install --dev --system
- name: Run migrations
run: |
mv .ci_env back/back/.env
cd back
mv back/.env.example back/.env
python manage.py migrate
- name: Test with pytest
run: |
Expand Down
8 changes: 2 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ services:
context: ./back/
ports:
- "127.0.0.1:8000:8000"
environment:
- DEBUG=True
- SECRET_KEY=somethingsupersecret
- BASE_URL=http://0.0.0.0:3000
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
- [email protected]
env_file:
- .env
volumes:
- ./back:/app
depends_on:
Expand Down
10 changes: 9 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Development

If you want to contribute or just play around with the source code, the first step would be to download the source code. Then run this to get it all up and running:
If you want to contribute or just play around with the source code, the first step would be to download the source code.

Then move the example environment file to the real one:

```
cp .example_env .env
```

Then run this to get it all up and running:

```bash
docker-compose up
Expand Down

0 comments on commit a16c417

Please sign in to comment.