makefile retrieve volumes directories from env variables
This commit is contained in:
@@ -17,14 +17,12 @@ services:
|
||||
- "${WP_PORT}:443"
|
||||
volumes:
|
||||
- wp_volume:${WP_VOLUME_DIR}
|
||||
- wp_plugins:${WP_VOLUME_PLUGINS}
|
||||
build:
|
||||
context: ./requirements/nginx
|
||||
args:
|
||||
- WP_URL=${WP_URL}
|
||||
- MAX_UPLOAD_SIZE=${MAX_UPLOAD_SIZE}
|
||||
- WP_VOLUME_DIR=${WP_VOLUME_DIR}
|
||||
- WP_VOLUME_PLUGINS=${WP_VOLUME_PLUGINS}
|
||||
- NG_VOLUME_CERTS=${NG_VOLUME_CERTS}
|
||||
image: nginx
|
||||
container_name: nginx_container
|
||||
@@ -61,12 +59,10 @@ services:
|
||||
- inception
|
||||
volumes:
|
||||
- wp_volume:${WP_VOLUME_DIR}
|
||||
- wp_plugins:${WP_VOLUME_PLUGINS}
|
||||
build:
|
||||
context: ./requirements/wordpress
|
||||
args:
|
||||
- WP_VOLUME_DIR=${WP_VOLUME_DIR}
|
||||
- WP_VOLUME_PLUGINS=${WP_VOLUME_PLUGINS}
|
||||
- MAX_UPLOAD_SIZE=${MAX_UPLOAD_SIZE}
|
||||
- EXECUTION_TIME=${EXECUTION_TIME}
|
||||
image: wordpress
|
||||
@@ -89,12 +85,6 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user