Skip to content

Commit 0f5b8ca

Browse files
committed
chore: bring back robotoff-backups
The robotoff_backup volume was removed until Robotoff migration to Moji was completed. The NFS mount was created manually on Moji server.
1 parent c99b2c1 commit 0f5b8ca

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ create_external_volumes:
234234
@echo "🥫 Creating external volumes (production only) …"
235235
docker volume create robotoff_postgres-data
236236
docker volume create robotoff_es-data
237+
# In production, robotoff_backup is a NFS mount, this should be created manually in production
238+
docker volume create robotoff_backup
237239

238240

239241
create_external_networks:

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ services:
125125
- POSTGRES_DB
126126
volumes:
127127
- postgres-data:/var/lib/postgresql/data
128+
- backup:/opt/robotoff-backups
128129
- ./scripts/backup_postgres.sh:/opt/backup_postgres.sh
129130
command: postgres -c shared_buffers=${ROBOTOFF_POSTGRES_SHARED_BUFFERS} -c work_mem=${ROBOTOFF_POSTGRES_WORK_MEM}
130131
mem_limit: 20g
@@ -170,6 +171,8 @@ volumes:
170171
name: ${COMPOSE_PROJECT_NAME:-robotoff}_es-data
171172
redis-data:
172173
name: ${COMPOSE_PROJECT_NAME:-robotoff}_redis-data
174+
backup:
175+
name: ${COMPOSE_PROJECT_NAME:-robotoff}_backup
173176

174177
networks:
175178
default:

docker/prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ volumes:
55
es-data:
66
external: true
77
name: ${COMPOSE_PROJECT_NAME:-robotoff}_es-data
8+
backup:
9+
external: true
10+
name: ${COMPOSE_PROJECT_NAME:-robotoff}_backup
811

912

1013
networks:

0 commit comments

Comments
 (0)