Skip to content

Commit 123b874

Browse files
committed
update docker-compose with an easy configuration on WP src volume
1 parent a5e8a3e commit 123b874

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

docker-compose.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,11 @@ services:
2929
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
3030
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
3131
volumes:
32-
- type: volume
33-
source: app_data
34-
target: /var/www/html
32+
- ./src:/var/www/html
3533
networks:
3634
local:
3735
ipv4_address: 172.28.6.5
3836

39-
volumes:
40-
app_data:
41-
driver: local
42-
driver_opts:
43-
type: none
44-
device: "${PWD}/src"
45-
o: bind
46-
4737
networks:
4838
local:
4939
ipam:

0 commit comments

Comments
 (0)