mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 02:53:11 +00:00
Merge branch 'nextcloud-sql-vars' of https://github.com/Blackfell/ansible-nas into Blackfell-nextcloud-sql-vars
This commit is contained in:
commit
33453cbac9
3 changed files with 14 additions and 9 deletions
|
@ -84,7 +84,6 @@ pytivo_enabled: false
|
|||
### General
|
||||
###
|
||||
|
||||
|
||||
# Will be added to the docker group to give user command line access to docker
|
||||
ansible_nas_user: david
|
||||
|
||||
|
|
|
@ -7,4 +7,9 @@ nextcloud_data_directory: "{{ docker_home }}/nextcloud"
|
|||
|
||||
# network
|
||||
nextcloud_port: "8080"
|
||||
nextcloud_hostname: "nextcloud"
|
||||
nextcloud_hostname: "nextcloud"
|
||||
|
||||
# username / passwords
|
||||
nextcloud_sql_user: "nextcloud-user"
|
||||
nextcloud_sql_pass: "nextcloud-pass"
|
||||
nextcloud_sql_secret: "nextcloud-secret"
|
|
@ -16,9 +16,9 @@
|
|||
- "{{ nextcloud_data_directory }}/mysql:/var/lib/mysql:rw"
|
||||
env:
|
||||
MYSQL_DATABASE: "nextcloud"
|
||||
MYSQL_USER: "nextcloud-user"
|
||||
MYSQL_PASSWORD: "nextcloud-pass"
|
||||
MYSQL_ROOT_PASSWORD: "nextcloud-secret"
|
||||
MYSQL_USER: "{{ nextcloud_sql_user }}"
|
||||
MYSQL_PASSWORD: "{{ nextcloud_sql_pass }}"
|
||||
MYSQL_ROOT_PASSWORD: "{{ nextcloud_sql_secret }}"
|
||||
restart_policy: unless-stopped
|
||||
memory: 1g
|
||||
|
||||
|
@ -36,9 +36,9 @@
|
|||
env:
|
||||
MYSQL_HOST: "mysql"
|
||||
MYSQL_DATABASE: "nextcloud"
|
||||
MYSQL_USER: "nextcloud-user"
|
||||
MYSQL_PASSWORD: "nextcloud-pass"
|
||||
NEXTCLOUD_TRUSTED_DOMAINS: "nextcloud.{{ ansible_nas_domain }}"
|
||||
MYSQL_USER: "{{ nextcloud_sql_user }}"
|
||||
MYSQL_PASSWORD: "{{ nextcloud_sql_pass }}"
|
||||
NEXTCLOUD_TRUSTED_DOMAINS: "{{ nextcloud_hostname }}.{{ ansible_nas_domain }}"
|
||||
restart_policy: unless-stopped
|
||||
memory: 1g
|
||||
labels:
|
||||
|
@ -47,4 +47,5 @@
|
|||
traefik.http.routers.nextcloud.tls.certresolver: "letsencrypt"
|
||||
traefik.http.routers.nextcloud.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||
traefik.http.routers.nextcloud.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
||||
traefik.http.services.nextcloud.loadbalancer.server.port: "80"
|
||||
traefik.http.services.nextcloud.loadbalancer.server.port: "80"
|
||||
|
||||
|
|
Loading…
Reference in a new issue