Fix mysql-server IP address because podman DNS does not work with an internal network.

This commit is contained in:
yohan 2024-10-27 18:07:04 +01:00
parent bf1f38fce4
commit 7575384754
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,8 @@
state: present
network:
- mysqlnet
# We need to fix the IP address because podman DNS does not work with an internal network.
ip: 10.89.1.2
volume:
- /mnt/volumes/mysql-server_data/data:/var/lib/mysql:z
- /mnt/volumes/mysql-server_dumps/data:/mnt/dumps:z

View File

@ -6,6 +6,8 @@
# and publishing ports on containers that are attached to mysqlnet
# and other networks will not work unless all networks but one are internal.
internal: true
# We need to fix the subnet because podman DNS does not work with an internal network.
subnet: 10.89.1.0/24
become: true
- name: Create /usr/local/docker-mounted-files/docker-mysql-server-stack directory