Replaced DB variables with env file
This commit is contained in:
parent
fa32dfa43d
commit
2aff2aa49b
|
@ -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 #
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue