Skip to content

Commit

Permalink
Update docker secret keys management
Browse files Browse the repository at this point in the history
  • Loading branch information
GDay committed Mar 29, 2024
1 parent 8a4eee6 commit 59ac8e2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
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]
4 changes: 0 additions & 4 deletions back/back/.env.example

This file was deleted.

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 59ac8e2

Please sign in to comment.