enable local data folder binding

This commit is contained in:
BadBUTA 2023-03-12 01:53:19 +08:00
parent 55b3e917ac
commit 6c2e6f7b35

View File

@ -2,8 +2,8 @@ services:
db:
image: mariadb:${MARIADB_IMG_TAG}
command: "--log-bin=mysqld-bin"
# volumes:
# - ./data/mysql:/var/lib/mysql
volumes:
- ./data/mysql:/var/lib/mysql
restart: "no"
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
@ -32,8 +32,8 @@ services:
image: bitnami/redis:${REDIS_IMG_TAG}
environment:
- ALLOW_EMPTY_PASSWORD=yes
# volumes:
# - ./data/redis:/bitnami/redis/data
volumes:
- ./data/redis:/bitnami/redis/data
command: /opt/bitnami/scripts/redis/run.sh --maxmemory 100mb
wordpress:
@ -50,7 +50,7 @@ services:
- db
- redis
volumes:
# - ./data/wp-content:/var/www/html/wp-content
- ./data/wp-content:/var/www/html/wp-content
# - ./data/php/upload.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./wordpress-xdebug/plugins/wordpress-docker-xdebug/plugin.php:/var/www/html/wp-content/plugins/wordpress-docker-xdebug/plugin.php:ro
ports: