re-added gestion for plugins volume outside folder

This commit is contained in:
asus
2024-02-06 11:24:05 +01:00
parent f43de228c6
commit 00473e1288
7 changed files with 45 additions and 10 deletions

View File

@@ -17,13 +17,14 @@ services:
- "${WP_PORT}:443"
volumes:
- wp_volume:${WP_VOLUME_DIR}
- wp_plugins:${WP_VOLUME_PLUGINS}
build:
context: ./requirements/nginx
args:
- WP_URL=${WP_URL}
- SERVER_MAX_UPLOAD_SIZE=${SERVER_MAX_UPLOAD_SIZE}
- WP_VOLUME_DIR=${WP_VOLUME_DIR}
- NG_VOLUME_CERTS=${NG_VOLUME_CERTS}
- NG_CERTS_DIR=${NG_CERTS_DIR}
image: nginx
container_name: nginx_container
depends_on:
@@ -59,6 +60,7 @@ services:
- inception
volumes:
- wp_volume:${WP_VOLUME_DIR}
- wp_plugins:${WP_VOLUME_PLUGINS}
build:
context: ./requirements/wordpress
args:
@@ -84,6 +86,12 @@ volumes:
type: none
o: "bind"
device: ${HOST_VOLUME_WP}
wp_plugins:
driver: local
driver_opts:
type: none
o: "bind"
device: ${HOST_VOLUME_PLUGINS}
networks:
inception: