mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Replaced DB variables with env file
This commit is contained in:
parent
fa32dfa43d
commit
2aff2aa49b
2 changed files with 9 additions and 12 deletions
|
@ -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 #
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue