Skip to content
Snippets Groups Projects
Commit 4c54ad46 authored by hacktohell's avatar hacktohell
Browse files

Wordpress now waits for the database and removed redunant network param

parent 8c918719
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ services:
wordpress:
image: wordpress:latest # https://hub.docker.com/_/wordpress/
ports:
- 127.0.10.10:80:80 # change ip if required
- 80:80 # change ip if required
volumes:
- ./wp-app:/var/www/html # Full wordpress project
#- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
......@@ -13,22 +13,16 @@ services:
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: password
links:
- db:db
networks:
- wordpress-network
# links:
# - db:db
depends_on:
- db
db:
image: mysql:latest # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
ports:
- 127.0.10.10:3306:3306 # change ip if required
- 306:3306 # change ip if required
volumes:
- ./wp-data:/docker-entrypoint-initdb.d
environment:
MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD: password
networks:
- wordpress-network
networks:
wordpress-network:
driver: bridge
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment