File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ create_external_volumes:
234
234
@echo " 🥫 Creating external volumes (production only) …"
235
235
docker volume create robotoff_postgres-data
236
236
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
237
239
238
240
239
241
create_external_networks :
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ services:
125
125
- POSTGRES_DB
126
126
volumes :
127
127
- postgres-data:/var/lib/postgresql/data
128
+ - backup:/opt/robotoff-backups
128
129
- ./scripts/backup_postgres.sh:/opt/backup_postgres.sh
129
130
command : postgres -c shared_buffers=${ROBOTOFF_POSTGRES_SHARED_BUFFERS} -c work_mem=${ROBOTOFF_POSTGRES_WORK_MEM}
130
131
mem_limit : 20g
@@ -170,6 +171,8 @@ volumes:
170
171
name : ${COMPOSE_PROJECT_NAME:-robotoff}_es-data
171
172
redis-data :
172
173
name : ${COMPOSE_PROJECT_NAME:-robotoff}_redis-data
174
+ backup :
175
+ name : ${COMPOSE_PROJECT_NAME:-robotoff}_backup
173
176
174
177
networks :
175
178
default :
Original file line number Diff line number Diff line change 5
5
es-data :
6
6
external : true
7
7
name : ${COMPOSE_PROJECT_NAME:-robotoff}_es-data
8
+ backup :
9
+ external : true
10
+ name : ${COMPOSE_PROJECT_NAME:-robotoff}_backup
8
11
9
12
10
13
networks :
You can’t perform that action at this time.
0 commit comments