Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.5' (This connection closed normally without authentication) #249

Open
semaforindia-waqar opened this issue Dec 2, 2019 · 1 comment

Comments

@semaforindia-waqar
Copy link

Not able to connect my WordPress with MariaDB.

docker-compose.yml

version: '3'

services:
db-headless:
container_name: db-headless
image: mariadb
restart: unless-stopped
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=${WORDPRESS_DB_NAME}
- MYSQL_USER=${WORDPRESS_DB_USER}
- MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
ports:
- '3306:3306'
expose:
- '3306'
wp-headless:
build: .
command: bash -c 'install_wordpress && apache2-foreground'
container_name: wp-headless
depends_on:
- db-headless
links:
- db-headless:mariadb
env_file: ./.env
ports:
- '8080:8080'
user: www-data
restart: unless-stopped
volumes:
- ./wordpress:/var/www/html
- ./docker/install_wordpress.sh:/usr/local/bin/install_wordpress
- ./docker/migratedb_import.sh:/usr/local/bin/migratedb_import
- ./docker/postlightheadlesswpstarter.wordpress.xml:/var/www/postlightheadlesswpstarter.wordpress.xml
- ./docker/plugins:/var/www/plugins
frontend:
command: bash -c 'yarn && yarn start'
container_name: frontend
expose:
- '3000'
image: node
ports:
- '3000:3000'
user: node
volumes:
- ./frontend:/home/node/app
working_dir: /home/node/app
frontend-graphql:
command: bash -c 'yarn && yarn start'
container_name: frontend-graphql
expose:
- '3001'
image: node
ports:
- '3001:3001'
user: node
volumes:
- ./frontend-graphql:/home/node/app
working_dir: /home/node/app

wp-config.php

@corypaik
Copy link

corypaik commented Feb 3, 2020

Having the same problem, did you ever find a solution? @semaforindia-waqar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants