I build my Home-Server on a raspberry pi and wanted to install nextcloud with Docker on it. But nextcloud don't find the mariadb.
What's wrong?
db:
image: jsurf/rpi-mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
volumes:
- /media/data/mySQL:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=Foo12345
- MYSQL_PASSWORD=Foo123
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
image: nextcloud:apache
volumes:
- /media/data/nextCloud:/var/www/html/data
links:
- db
environment:
- MYSQL_ROOT_PASSWORD=Foo12345
- MYSQL_PASSWORD=Foo123
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
labels:
- "traefik.frontend.rule=Host:cloud.domain.com"
NextCloud starts but if I try to set the admin-User comes the Error:
The Container of the mariadb has the IP 172.21.0.4 so I think there is somthing wrong with the link. But what?
(172.21.0.5 is the IP of the NextCloud-Container)