Skip to content

Commit

Permalink
[#175] Add or relocate volumes for solr and redis data in docker-comp…
Browse files Browse the repository at this point in the history
…ose files (#176)
  • Loading branch information
ItaloBorrelli authored Dec 2, 2022
1 parent 9ff4dfb commit 836b435
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
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

0 comments on commit 836b435

Please sign in to comment.