chore: ⚙️ change restart policy to 'unless-stopped'

• Update restart policy for all services to 'unless-stopped'
• Ensure services do not restart automatically on failure
• Improve control over service management in development environment
This commit is contained in:
Maicol Battistini 2025-02-03 15:08:19 +01:00
parent c9211692a7
commit 5900da2df9
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ services:
# volume (which is what we're creating here) will be initialized with the
# existing content of the image at the same location
- /app/public/sites
restart: always
restart: unless-stopped
db:
image: postgres
@ -52,7 +52,7 @@ services:
POSTGRES_DB: d4science
POSTGRES_USER: d4science
POSTGRES_PASSWORD: "NDyJ4.pixFnuF"
restart: always
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
@ -61,7 +61,7 @@ services:
adminer:
image: adminer
restart: always
restart: unless-stopped
ports:
- 8088:8080
@ -77,4 +77,4 @@ services:
MYSQL_USER: d4science
MYSQL_PASSWORD: password
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
restart: always
restart: unless-stopped

View File

@ -38,4 +38,4 @@ services:
# volume (which is what we're creating here) will be initialized with the
# existing content of the image at the same location
- /app/public/sites
restart: always
restart: unless-stopped