postgres env vars work
This commit is contained in:
parent
cea092ee6a
commit
02a359709c
@ -14,6 +14,7 @@ services:
|
|||||||
VIRTUAL_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
|
VIRTUAL_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
|
||||||
VIRTUAL_ROOT: "/var/www/html/"
|
VIRTUAL_ROOT: "/var/www/html/"
|
||||||
LETSENCRYPT_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
|
LETSENCRYPT_HOST: "{{ inventory_hostname | default('ansible_undefined_fact') }}"
|
||||||
|
NEXTCLOUD_ADMIN_USER: "admin"
|
||||||
POSTGRES_DB: "nextcloud"
|
POSTGRES_DB: "nextcloud"
|
||||||
POSTGRES_USER: "postgres"
|
POSTGRES_USER: "postgres"
|
||||||
POSTGRES_HOST: "database"
|
POSTGRES_HOST: "database"
|
||||||
@ -29,9 +30,11 @@ services:
|
|||||||
database:
|
database:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
hostname: database
|
||||||
env_file:
|
env_file:
|
||||||
- .db.env
|
- .db.env
|
||||||
hostname: database
|
environment:
|
||||||
|
POSTGRES_DB: "nextcloud"
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
aliases:
|
aliases:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user