ctorgalson / ansible-role-nextcloud-docker

An Ansible role for installing Nextcloud using Docker.
GNU General Public License v2.0
0 stars 1 forks source link

Default scenario not correctly setting redis, pgsql database passwords #38

Open ctorgalson opened 4 years ago

ctorgalson commented 4 years ago

Running php occ config:list --private shows different passwords than are specified in defaults/main.yml and in molecule/default/converge.yml.

ctorgalson commented 4 years ago

Confirmed: also not correctly setting dbuser.

ctorgalson commented 4 years ago

I think what's going on here is this.

Whether by accident or by design, it looks like the nextcloud/docker README is just wrong when it says that environment variables work with docker-compose (whereas they appear to work well with a Dockerfile).

This means that the only real use for NEXTCLOUD_* environment variables in this role would be to use them in the php occ maintenance:install command. But this is hardly necessary since we can pass them as Ansible variables, and since adding all of them in makes the generated docker-compose.yml more complex.