On 04/04/2018 03:31 PM, brian@emwd.com wrote:
Ok I am trying this again. I am not sure why my last questions were not answered. Please let me know if I am doing something wrong in asking them. Here they are again:
"Please explain "You'd have to manually change the docker-compose.yaml file to use the on-host database though." Even though I run docker-compose-mysql -d I still need to update the docker-compose.yaml file? See that is confusing for me. Again it is probably due to my inexperience in using docker."
I think that is a legitimate question. There are two files being referenced here. If docker-compose-mysql.yaml has the correct setup then why do I need to manually change the docker-compose.yaml? It seems both files perform the same function except one references a Postgre DB and the other a MySQL DB.
The docker-compose files run a database inside a docker container as well. The difference between the "normal" and mysql version is the database being used. If you wish to run Mailman using docker with a database on the local host (not in a container) you will need to update the docker configurations to reflect that. The stuff you would need to change is:
- remove the database container from the compose file
- update the credentials to be able to connect to the database running on the host DATABASE_URL and DATABASE_TYPE. Note that each one of them exists twice!
There is no easy way to get the private IP address of the docker host in the compose-file. So you'll have to patch that in somehow. Here is an issue with pointers on how to do that https://github.com/docker/compose/issues/4092
As for your other issue: You don't need to setup anything yourself if you want to use docker for everything. It autocreates everything for you. You should change the credentials though before running it...
You are having trouble finding information because you want to partially use docker but leave the database on the host. If you want to tinker with how Mailman is supposed to be deployed using docker we can't start to document every possible thing you might want to change.
If you have specific issues with how to run them after reading https://asynchronous.in/docker-mailman/ please mention mention what part needs fixing/explanation