Merge pull request #143 from ckan/install-volumes-2

volume for pip cache, keep volumes
This commit is contained in:
Brett Jones 2024-04-30 05:13:32 +02:00 committed by GitHub
commit b70bd39369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -2,6 +2,9 @@ volumes:
ckan_storage:
pg_data:
solr_data:
pip_cache:
site_packages:
vscode_server:
services:
@ -22,8 +25,9 @@ services:
volumes:
- ckan_storage:/var/lib/ckan
- ./src:/srv/app/src_extensions
- /usr/lib/python3.10/site-packages
- /root/.vscode-server
- pip_cache:/root/.cache/pip
- site_packages:/usr/lib/python3.10/site-packages
- vscode_server:/root/.vscode-server
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]

View File

@ -2,6 +2,8 @@ volumes:
ckan_storage:
pg_data:
solr_data:
pip_cache:
site_packages:
services:
@ -40,7 +42,8 @@ services:
condition: service_healthy
volumes:
- ckan_storage:/var/lib/ckan
- /usr/lib/python3.10/site-packages
- pip_cache:/root/.cache/pip
- site_packages:/usr/lib/python3.10/site-packages
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]