From 5bc0ddfa00aa53d20ed0fb70d4f0f220a906310d Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Sat, 2 Sep 2023 09:28:39 +0200 Subject: [PATCH] Add admin password as env variable to image --- templates/application/docker-compose_nextcloud.yml.erb | 2 ++ templates/multinode/docker-compose_nextcloud.yml.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/templates/application/docker-compose_nextcloud.yml.erb b/templates/application/docker-compose_nextcloud.yml.erb index 4773587..e6d4468 100644 --- a/templates/application/docker-compose_nextcloud.yml.erb +++ b/templates/application/docker-compose_nextcloud.yml.erb @@ -5,6 +5,8 @@ services: app: image: docker.sunet.se/drive/nextcloud-custom:<%= @nextcloud_version %> restart: always + environment: + - NC_PASS=<%= @admin_password%> volumes: - /opt/nextcloud/000-default.conf:/etc/apache2/sites-enabled/000-default.conf - /opt/nextcloud/mpm_prefork.conf:/etc/apache2/mods-available/mpm_prefork.conf diff --git a/templates/multinode/docker-compose_nextcloud.yml.erb b/templates/multinode/docker-compose_nextcloud.yml.erb index 69d29e7..c6f0bb3 100644 --- a/templates/multinode/docker-compose_nextcloud.yml.erb +++ b/templates/multinode/docker-compose_nextcloud.yml.erb @@ -14,6 +14,8 @@ services: - <%= @config_php_path %>:/var/www/html/config/config.php - <%= @nextcloud_log_path %>:/var/www/html/data/nextcloud.log - <%= @rclone_conf_path %>:/rclone.conf + environment: + - NC_PASS=<%= @admin_password%> networks: - default - proxysql_proxysql