File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ services:
3
3
wordpress :
4
4
image : wordpress:latest # https://hub.docker.com/_/wordpress/
5
5
ports :
6
- - 80:80 # change ip if required
6
+ - 127.0.0.01: 80:80 # change ip if required
7
7
volumes :
8
8
- ./wp-app:/var/www/html # Full wordpress project
9
9
# - ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
@@ -15,12 +15,19 @@ services:
15
15
WORDPRESS_DB_PASSWORD : password
16
16
depends_on :
17
17
- db
18
+ networks :
19
+ - wordpress-network
18
20
db :
19
21
image : mysql:latest # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
20
22
ports :
21
- - 3306:3306 # change ip if required
23
+ - 127.0.0.1: 3306:3306 # change ip if required
22
24
volumes :
23
25
- ./wp-data:/docker-entrypoint-initdb.d
24
26
environment :
25
27
MYSQL_DATABASE : wordpress
26
28
MYSQL_ROOT_PASSWORD : password
29
+ networks :
30
+ - wordpress-network
31
+ networks :
32
+ wordpress-network :
33
+ driver : bridge
You can’t perform that action at this time.
0 commit comments