Skip to content

Commit 950c551

Browse files
committed
Use DUMP_INTERVAL instead of DUMP
1 parent 85f02c6 commit 950c551

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ENV MONGO_SECONDARY_CATCHUP_PERIOD 8
4444
ENV MONGO_STEPDOWN_TIME 60
4545
ENV MONGO_ELECTION_TIMEOUT 30
4646

47-
# configure ContainerPilot and MySQL
47+
# Configure ContainerPilot and Mongo
4848
COPY etc/* /etc/
4949
COPY bin/* /usr/local/bin/
5050

etc/containerpilot.json5

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@
2626
restarts: "unlimited"
2727
},
2828
{{ end }}
29-
{{ if .DUMP }}
29+
{{ if .DUMP_INTERVAL }}
3030
{
3131
name: "backup",
3232
exec: "python /usr/local/bin/manage.py backup",
33-
restartLimit: 0,
3433
when: {
35-
interval: "6h",
34+
interval: "{{ .DUMP_INTERVAL }}",
3635
}
3736
},
3837
{{ end }}

0 commit comments

Comments
 (0)