Skip to content

Commit

Permalink
[GH-21] Adds restart policy
Browse files Browse the repository at this point in the history
  • Loading branch information
mhubig committed Apr 12, 2020
1 parent 3a8865b commit 07abe5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:

database:
image: mariadb:10.0
restart: on-failure
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=partkeepr
Expand All @@ -13,6 +14,7 @@ services:

partkeepr:
image: mhubig/partkeepr:latest
restart: on-failure
environment:
- PARTKEEPR_DATABASE_HOST
- PARTKEEPR_DATABASE_NAME
Expand Down Expand Up @@ -69,6 +71,7 @@ services:

cronjob:
image: mhubig/partkeepr:latest
restart: on-failure
entrypoint: []
command: bash -c "crontab /etc/cron.d/partkeepr && cron -f"
volumes:
Expand Down

0 comments on commit 07abe5a

Please sign in to comment.