postgres env vars work

This commit is contained in:
Mike Holloway 2025-12-03 23:17:30 -05:00
parent cea092ee6a
commit 02a359709c

View File

@ -14,6 +14,7 @@ services:
VIRTUAL_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
VIRTUAL_ROOT: "/var/www/html/"
LETSENCRYPT_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
NEXTCLOUD_ADMIN_USER: "admin"
POSTGRES_DB: "nextcloud"
POSTGRES_USER: "postgres"
POSTGRES_HOST: "database"
@ -29,9 +30,11 @@ services:
database:
image: postgres:latest
restart: always
hostname: database
env_file:
- .db.env
hostname: database
environment:
POSTGRES_DB: "nextcloud"
networks:
default:
aliases: