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 Time in Days
FEED_RETENTION=30 FEED_RETENTION=30
# Database settings ###########################
hibernate.connection.url="jdbc:postgresql://postgres:5432/piped" # database settings #
hibernate.connection.driver_class="org.postgresql.Driver" ###########################
hibernate.dialect="org.hibernate.dialect.PostgreSQLDialect"
hibernate.connection.username="piped" POSTGRES_DB=piped
hibernate.connection.password="changeme" POSTGRES_USER=piped
POSTGRES_PASSWORD=changeme
########################### ###########################
# Watchtower settings # # Watchtower settings #

View file

@ -54,14 +54,10 @@ services:
postgres: postgres:
image: postgres:15 image: postgres:15
restart: unless-stopped restart: unless-stopped
env_file:
- configuration.env
volumes: volumes:
- ./data/db:/var/lib/postgresql/data - ./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: watchtower:
image: containrrr/watchtower image: containrrr/watchtower
restart: always restart: always