All environment settings moved to file

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

View File

@ -44,3 +44,10 @@ hibernate.connection.driver_class="org.postgresql.Driver"
hibernate.dialect="org.hibernate.dialect.PostgreSQLDialect"
hibernate.connection.username="piped"
hibernate.connection.password="changeme"
###########################
# Watchtower settings #
###########################
WATCHTOWER_CLEANUP=true
WATCHTOWER_INCLUDE_RESTARTING=true

View File

@ -25,8 +25,8 @@ services:
restart: unless-stopped
env_file:
- configuration.env
volumes:
- ./config/config.properties:/app/config.properties:ro
# volumes:
# - ./config/config.properties:/app/config.properties:ro
depends_on:
- postgres
nginx:
@ -36,10 +36,8 @@ services:
ports:
- "80:80"
- "443:443"
environment:
- FRONTEND_HOSTNAME=frontend-host.example.com
- BACKEND_HOSTNAME=backend-host.example.com
- PROXY_HOSTNAME=proxy-host.example.com
env_file:
- configuration.env
volumes:
- ./config/piped.conf.template:/etc/nginx/templates/piped.conf.template:ro
- ./config/ytproxy.conf:/etc/nginx/snippets/ytproxy.conf:ro
@ -69,9 +67,8 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_RESTARTING=true
env_file:
- configuration.env
command: piped-frontend piped-backend piped-proxy nginx postgres watchtower
volumes:
piped-proxy: null