Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Bug 20: Avoid repeated program restarts fix fernandod1#20
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 committed Jun 25, 2022
1 parent 750dda5 commit 8976b19
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
instagram-to-discord:
image: ghcr.io/jim60105/docker-instagram-to-discord
# build: .
restart: always
labels:
- 'instagram-to-discord'
restart: on-failure:3
volumes:
- ./config.yml:/usr/src/app/config.yml:ro
- db:/usr/src/app/db
Expand All @@ -13,5 +15,18 @@ services:
# options:
# gelf-address: "udp://127.0.0.1:12201"

# Start container every day. (if it's not running)
jobber:
image: blacklabelops/jobber:docker
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- JOB_NAME1=start
- JOB_COMMAND1=docker start $$(docker ps -aqf "label=instagram-to-discord")
- JOB_TIME1=0 0 0 * * * #Every day
- JOB_NOTIFY_ERR1=false
- JOB_NOTIFY_FAIL1=false

volumes:
db:

0 comments on commit 8976b19

Please sign in to comment.