Update env sample, and fix db volume

This commit is contained in:
kurt-mcrae
2024-11-26 21:32:33 +11:00
parent 839320df7a
commit fd250f66e6
3 changed files with 5 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
# Database credentials
# Database credentials -> update the password to something secure
DB_USER=postgres
DB_PASSWORD=password
# NSW Fuel API credentials
# NSW Fuel API credentials - the defaults here are the sandbox creds -> sign up and change these
NSW_FUEL_API_KEY=1MYSRAx5yvqHUZc6VGtxix6oMA2qgfRT
NSW_FUEL_API_SECRET=BMvWacw15Et8uFGF
NSW_FUEL_API_AUTH_HEADER=MU1ZU1JBeDV5dnFIVVpjNlZHdHhpeDZvTUEycWdmUlQ6Qk12V2FjdzE1RXQ4dUZHRg==

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@ backend/appsettings.Production.json
backend/.idea*
.env
/volumes

View File

@@ -4,10 +4,6 @@ networks:
app-network:
driver: bridge
volumes:
timescaledb-data:
driver: local
services:
backend-prod:
image: backend-prod
@@ -48,7 +44,7 @@ services:
networks:
- app-network
volumes:
- timescaledb-data:/var/lib/postgresql/data
- ./volumes/timescaledb-prod:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 10s