fix: move all hardcoded secrets to .env files and create examples
This commit is contained in:
parent
11b7c14dc7
commit
7cfd2dd352
8 changed files with 16 additions and 15 deletions
|
|
@ -7,7 +7,7 @@ services:
|
|||
networks:
|
||||
- lora-gateway_mqtt
|
||||
- database
|
||||
env_file: consumer.env
|
||||
env_file: env_files/consumer.env
|
||||
|
||||
api:
|
||||
build: ./backend
|
||||
|
|
@ -19,7 +19,7 @@ services:
|
|||
networks:
|
||||
- public
|
||||
- database
|
||||
env_file: api.env
|
||||
env_file: env_files/api.env
|
||||
|
||||
webui:
|
||||
build: ./frontend
|
||||
|
|
@ -40,10 +40,8 @@ services:
|
|||
- db:/var/lib/postgresql
|
||||
networks:
|
||||
- database
|
||||
environment:
|
||||
- POSTGRES_USER=simugaz
|
||||
- POSTGRES_PASSWORD=simugaz
|
||||
- POSTGRES_DB=simugaz
|
||||
env_file: env_files/db.env
|
||||
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
|
|
@ -55,9 +53,7 @@ services:
|
|||
- database
|
||||
volumes:
|
||||
- ./servers.json:/pgadmin4/servers.json
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@example.com
|
||||
PGADMIN_DEFAULT_PASSWORD: changeme
|
||||
env_file: env_files/pgadmin.env
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
|
|
|||
3
server/env_files/db.env.example
Normal file
3
server/env_files/db.env.example
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
POSTGRES_USER=simugaz
|
||||
POSTGRES_PASSWORD=simugaz
|
||||
POSTGRES_DB=simugaz
|
||||
2
server/env_files/pgadmin.env.example
Normal file
2
server/env_files/pgadmin.env.example
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
PGADMIN_DEFAULT_EMAIL=admin@example.com
|
||||
PGADMIN_DEFAULT_PASSWORD=changeme
|
||||
Loading…
Add table
Add a link
Reference in a new issue