Commit 2f29f55e authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

docker-compose does not interpolate volume names from env variables

parent abd72cb8
Pipeline #3203 passed with stages
in 42 seconds
......@@ -38,6 +38,7 @@ deploy_development:
- export TAG=dev
- export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040
- export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=catalog-cache-${TAG}
- docker volume create ${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}
- export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose pull
......@@ -54,6 +55,7 @@ deploy_staging:
- export TAG=staging
- export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4140
- export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=catalog-cache-${TAG}
- docker volume create ${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}
- export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- TAG=dev docker-compose pull
......
......@@ -8,7 +8,9 @@ services:
- ${CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT}:8000
volumes:
- ${CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH}:/app/config.yaml:ro
- ${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}:/app/cache
- cache:/app/cache
volumes:
${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}:
cache:
external:
name: ${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment