Store slug with each barrel
This commit is contained in:
parent
8c5e7cf01a
commit
47795496b5
3 changed files with 6 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ log_info " => Writing configuration file"
|
|||
load_template "docker-env/barrel" \
|
||||
"REAL_PATH" "${INSTANCE_DATA_DIR}" \
|
||||
"VIRTUAL_HOST" "${INSTANCE_DOMAIN}" \
|
||||
"SLUG" "${SLUG}" \
|
||||
"LETSENCRYPT_HOST" "${LETSENCRYPT_HOST}" \
|
||||
"LETSENCRYPT_EMAIL" "${LETSENCRYPT_EMAIL}" \
|
||||
> "$INSTANCE_BASE_DIR/.env"
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ services:
|
|||
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
|
||||
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
|
||||
|
||||
# label it with the current slug
|
||||
labels:
|
||||
eu.wiss-ki.barrel.slug: ${SLUG}
|
||||
|
||||
# the volumes to
|
||||
volumes:
|
||||
- ${REAL_PATH}/.composer:/var/www/.composer
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
REAL_PATH=${REAL_PATH}
|
||||
|
||||
SLUG=${SLUG}
|
||||
VIRTUAL_HOST=${VIRTUAL_HOST}
|
||||
|
||||
LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue