Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 0937df4

Browse files
authored
Merge pull request #1957 from bjones1/docker-fix
Fix: Restart all containers on startup/crash.
2 parents 3a38823 + 2f7301c commit 0937df4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ services:
77
jobe:
88
image: runestone/jobeinabox
99
build: ./jobeinabox/
10+
restart: always
1011
volumes:
1112
- ./jobeinabox/files:/usr/local/lib/java
1213
runestone:
1314
image: runestone/server
14-
restart: on-failure
15+
restart: always
1516
ports:
1617
# Allow HTTP, so the web server can forward to https.
1718
- "80:80"

docker/docker_tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,13 +552,15 @@ def _build_phase_0(
552552
db:
553553
image:
554554
postgres:13
555+
restart: always
555556
environment:
556557
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
557558
POSTGRES_USER: ${POSTGRES_USER}
558559
POSTGRES_DBNAME: ${POSTGRES_DBNAME}
559560
560561
redis:
561562
image: redis
563+
restart: always
562564
563565
runestone:
564566
${DEV_MISC}

0 commit comments

Comments
 (0)