We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not able to connect my WordPress with MariaDB.
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
The text was updated successfully, but these errors were encountered:
Having the same problem, did you ever find a solution? @semaforindia-waqar
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: