Replaced DB variables with env file

This commit is contained in:
Bento Silveira 2023-07-23 12:42:37 -03:00 committed by Nerdeiro da Silva
parent fa32dfa43d
commit 2aff2aa49b
No known key found for this signature in database
GPG Key ID: E50EFBA12C1ED3CD
2 changed files with 9 additions and 12 deletions

View File

@ -38,12 +38,13 @@ DISABLE_REGISTRATION=false
# Feed Retention Time in Days
FEED_RETENTION=30
# Database settings
hibernate.connection.url="jdbc:postgresql://postgres:5432/piped"
hibernate.connection.driver_class="org.postgresql.Driver"
hibernate.dialect="org.hibernate.dialect.PostgreSQLDialect"
hibernate.connection.username="piped"
hibernate.connection.password="changeme"
###########################
# database settings #
###########################
POSTGRES_DB=piped
POSTGRES_USER=piped
POSTGRES_PASSWORD=changeme
###########################
# Watchtower settings #

View File

@ -54,14 +54,10 @@ services:
postgres:
image: postgres:15
restart: unless-stopped
env_file:
- configuration.env
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
# Database settings. Make sure to adjust these values
# on the configuration.env file too.
- POSTGRES_DB=piped
- POSTGRES_USER=piped
- POSTGRES_PASSWORD=changeme
watchtower:
image: containrrr/watchtower
restart: always