Skip to content

Commit

Permalink
chore: add tmp volume for ES
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 23, 2024
1 parent 15130d2 commit 6225bcb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ x-robotoff-base-volumes:
- ./cache:/opt/robotoff/cache
- ./datasets:/opt/robotoff/datasets
- ./models:/opt/robotoff/models
- tmp:/tmp
- robotoff_tmp:/tmp

x-robotoff-base:
&robotoff-base
Expand Down Expand Up @@ -164,6 +164,7 @@ services:
mem_limit: 15g
volumes:
- es-data:/usr/share/elasticsearch/data
- elasticsearch_tmp:/tmp

volumes:
postgres-data:
Expand All @@ -176,8 +177,11 @@ volumes:
name: ${COMPOSE_PROJECT_NAME:-robotoff}_backup
# Volume mount on /tmp on API and workers, to prevent
# large docker layer overlay
tmp:
robotoff_tmp:
name: ${COMPOSE_PROJECT_NAME:-robotoff}_tmp
elasticsearch_tmp:
name: ${COMPOSE_PROJECT_NAME:-robotoff}_elasticsearch_tmp


networks:
default:
Expand Down

0 comments on commit 6225bcb

Please sign in to comment.