Env vars adjustment, hostname adjustment, env file adjustment

This commit is contained in:
Mike Holloway 2025-12-04 19:26:40 -05:00
parent 3fbf61f504
commit f3fd68ef56

View File

@ -3,13 +3,13 @@ services:
db: db:
image: postgres:alpine image: postgres:alpine
restart: always restart: always
hostname: database hostname: db
environment: environment:
POSTGRES_DB: "nextcloud" POSTGRES_DB: "nextcloud"
volumes: volumes:
- db:/var/lib/postgresql/data:Z - db:/var/lib/postgresql/data:Z
env_file: env_file:
- db.env - .db.env
redis: redis:
image: redis:alpine image: redis:alpine
@ -27,16 +27,14 @@ services:
NEXTCLOUD_ADMIN_USER: "admin" NEXTCLOUD_ADMIN_USER: "admin"
POSTGRES_DB: "nextcloud" POSTGRES_DB: "nextcloud"
POSTGRES_USER: "postgres" POSTGRES_USER: "postgres"
POSTGRES_HOST: "database" POSTGRES_HOST: "db"
REDIS_HOST: "redis"
NEXTCLOUD_TRUSTED_DOMAINS: "{{ inventory_hostname | default('ansible_undefined_fact') }}" NEXTCLOUD_TRUSTED_DOMAINS: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
volumes: volumes:
- ~/webroot:/var/www/html - ~/webroot:/var/www/html
# NOTE: The `volumes` config of the `cron` and `app` containers must match # NOTE: The `volumes` config of the `cron` and `app` containers must match
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
env_file: env_file:
- db.env - .webserver.env
depends_on: depends_on:
- db - db
- redis - redis