Skip to content

Commit f16eca6

Browse files
committed
Added restart always.
1 parent 41a47a1 commit f16eca6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
- "8080:8080"
1010
depends_on:
1111
- backend
12+
restart: always
1213
backend:
1314
image: ghcr.io/rust-cms/rcms:v0.1.0
1415
ports:
@@ -22,6 +23,7 @@ services:
2223
- APP_BIND_ADDRESS=0.0.0.0
2324
- APP_BIND_PORT=80
2425
command: ["./wait-for-it.sh", "rcms-db:3306", "-t", "0", "--", "rcms"]
26+
restart: always
2527
# This section here is optional if you have your own database. We use this for the time being.
2628
db:
2729
container_name: rcms-db
@@ -31,4 +33,5 @@ services:
3133
- "9095:3306"
3234
environment:
3335
- MARIADB_ROOT_PASSWORD=password
34-
- MARIADB_DATABASE=rustcms
36+
- MARIADB_DATABASE=rustcms
37+
restart: always

0 commit comments

Comments
 (0)