db:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=teste123
blog:
image: wordpress
environment:
- WORDPRESS_DB_PASSWORD=teste123
links:
- db:mysql
ports:
- 80:80
O container blog não consegue conectar-se ao container db, alguém sabe qual a causa provável?
Attaching to blog_db_1, blog_blog_1 db_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message blog_1 | WordPress not found in /var/www/html - copying now... blog_1 | Complete! WordPress has been successfully copied to /var/www/html blog_1 | blog_1 | MySQL Connection Error: (2002) Connection refused blog_1 | blog_1 | Warning: mysqli::mysqli(): (HY000/2002): Connection refused in - on line 22 blog_1 | blog_1 | Warning: mysqli::mysqli(): (HY000/2002): Connection refused in - on line 22 b