Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#175] Add or relocate volumes for solr and redis data in docker-comp… #176

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions contrib/docker/docker-compose.cpu_limited.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ volumes:
ckan_storage:
pg_data:
solr_data:


redis_data:

services:
ckan:
Expand Down Expand Up @@ -145,6 +144,8 @@ services:
resources:
limits:
cpus: '${LIMIT_CPU_SOLR:-1.0}'
volumes:
- solr_data:/var/solr

# redis is used by the datapusher and the spatial fetch and gather harvesters
redis:
Expand All @@ -154,4 +155,6 @@ services:
resources:
limits:
cpus: '${LIMIT_CPU_REDIS:-0.25}'
volumes:
- redis_data:/data
#restart: always
7 changes: 6 additions & 1 deletion contrib/docker/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ volumes:
ckan_home:
ckan_storage:
pg_data:

solr_data:
redis_data:

services:
ckan:
Expand Down Expand Up @@ -135,11 +136,15 @@ services:
build:
context: ../../
dockerfile: contrib/docker/solr/Dockerfile
volumes:
- solr_data:/var/solr
#restart: always

redis:
container_name: redis
image: redis:latest
volumes:
- redis_data:/data
#restart: always

# pycsw:
Expand Down
5 changes: 4 additions & 1 deletion contrib/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ volumes:
ckan_storage:
pg_data:
solr_data:
redis_data:

services:
ckan:
Expand Down Expand Up @@ -117,10 +118,12 @@ services:
image: cioos/solr:latest
restart: unless-stopped
volumes:
- solr_data:/opt/solr/server/solr/ckan/data
- solr_data:/var/solr

# redis is used by the datapusher and the spatial fetch and gather harvesters
redis:
container_name: redis
image: redis:latest
restart: unless-stopped
volumes:
- redis_data:/data