Hello,
I have 1 problem with Docker, with mariadb for Wordpress I have this error : MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
The logs: https://pastebin.com/G22frUaa
My docker-compose :
version: ‘3.3’
services:
wordpress:
image: wordpress:latest
restart: always
environment:
WORDPRESS_DB_PASSWORD: wordpress
networks:
local:
proxy:
aliases:
- wordpress
volumes:
- ./html:/var/www/html
depends_on:
- mariadb
- memcached
mariadb:
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
volumes:
- ./database:/var/lib/mysql
networks:
- local
memcached:
image: memcached
restart: always
networks:
- local
networks:
proxy:
external: true
local:
external: false
How to solve the problem ?
thx