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

update wordpress avalible to reach localhost's db & fix wp-cli keep alive #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ services:
restart: always
ports:
- 80:80
extra_hosts:
- "host.docker.internal:host-gateway"

mysql:
image: mariadb:${MARIADB_VERSION:-latest}
Expand Down Expand Up @@ -52,6 +54,14 @@ services:
volumes:
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html
working_dir: /var/www/html
command: tail -f /dev/null
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: ${DATABASE_USER}
WORDPRESS_DB_PASSWORD: ${DATABASE_PASSWORD}
WORDPRESS_DB_NAME: ${COMPOSE_PROJECT_NAME}
extra_hosts:
- "host.docker.internal:host-gateway"

# Check availability of essential services
healthcheck:
Expand Down