I have run the docker-compose.yml file linked here > https://github.com/crocandr/docker-unim ... ompose.yml
I am not able to get the correct db config.
Database type: Mysql
Host: ? (assume docker ip address as no exposed ports from the compose file?)
Database name: ?
Database user: (assume one need to be created)
Database password: (assume one need to be created)
Encryption key: (assume one need to be created)
Please can someone assist?
TIA
[Solved] Unimus Docker Database Config
Hi, happy to help. All the data is present in the compose file, in the DB container's section. Here is how the parts of the "db" container config map into Unimus config:
Code: Select all
db: <<< this is the name of the container, and should be used as the DB "Host" in Unimus. Docker will take care of translating this hostname to an internal docker IP
image: mariadb
command: --max_allowed_packet=268M
environment:
- MYSQL_ROOT_PASSWORD=supersecret
- MYSQL_DATABASE=unimus <<< this is the "Database name"
- MYSQL_USER=unimus <<< this is the "Database user"
- MYSQL_PASSWORD=secret <<< and this is the "Database password"
- TZ=Europe/Budapest
volumes:
- './db:/var/lib/mysql'
- '/etc/localtime:/etc/localtime:ro'
restart: unless-stopped
Hope this helps.