there is a map with a marker, and the docker don't generate a new certificate all the time

This commit is contained in:
lenovo
2022-10-29 17:11:25 +02:00
parent 40963ce3cb
commit 4dca5a4760
15 changed files with 129 additions and 106 deletions

View File

@@ -22,15 +22,18 @@ services:
- inception
ports:
- "443:443"
#- "80:80"
volumes:
- wp_volume:${WP_DIR}
- wp_plugins:${WP_PLUGIN_DIR}
- wp_volume:${WP_VOLUME_DIR}
- wp_plugins:${WP_VOLUME_PLUGINS}
- ng_certs:${NG_VOLUME_CERTS}
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
depends_on:
@@ -65,12 +68,13 @@ services:
networks:
- inception
volumes:
- wp_volume:${WP_DIR}
- wp_plugins:${WP_PLUGIN_DIR}
- wp_volume:${WP_VOLUME_DIR}
- wp_plugins:${WP_VOLUME_PLUGINS}
build:
context: ./requirements/wordpress
args:
- WP_DIR=${WP_DIR}
- WP_VOLUME_DIR=${WP_VOLUME_DIR}
- WP_VOLUME_PLUGINS=${WP_VOLUME_PLUGINS}
- MAX_UPLOAD_SIZE=${MAX_UPLOAD_SIZE}
- EXECUTION_TIME=${EXECUTION_TIME}
image: wordpress
@@ -81,24 +85,30 @@ services:
# specify path to named volumes : https://docs.docker.com/compose/compose-file/compose-file-v3/#volume-configuration-reference
volumes:
wp_volume:
driver: local
driver_opts:
type: none
o: "bind"
device: ${MAP_VOLUMES}/wp_volume
wp_plugins:
driver: local
driver_opts:
type: none
o: "bind"
device: ${MAP_VOLUMES_PLUGINS}
db_volume:
driver: local
driver_opts:
type: none
o: "bind"
device: ${MAP_VOLUMES}/db_volume
device: ${HOST_VOLUME_DB}
wp_volume:
driver: local
driver_opts:
type: none
o: "bind"
device: ${HOST_VOLUME_WP}
wp_plugins:
driver: local
driver_opts:
type: none
o: "bind"
device: ${HOST_VOLUME_PLUGINS}
ng_certs:
driver: local
driver_opts:
type: none
o: "bind"
device: ${HOST_VOLUME_CERTS}
networks:
inception: