Skip to content

Commit

Permalink
Update docker-compose.yml to add restart policies
Browse files Browse the repository at this point in the history
Added 'unless-stopped' restart policies to both the 'db' and 'app' services in docker-compose.yml to ensure they automatically restart unless explicitly stopped by the user.
  • Loading branch information
bibz0r authored Jul 8, 2024
1 parent f1b3802 commit 43b701e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ services:
# TODO: Get database migrations to work with the latest point releases of
# MariaDB 10.4.
image: mariadb:10.4.30
restart: unless-stopped
ports:
- 3306:3306
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: stevedb
MYSQL_USER: steve
MYSQL_PASSWORD: changeme

app:
restart: unless-stopped
build: .
links:
- "db:mariadb"
Expand All @@ -32,3 +33,4 @@ services:
- "8443:8443"
depends_on:
- db

0 comments on commit 43b701e

Please sign in to comment.