🛠️ Format healthcheck commands for better readability in production Docker Compose file
This commit is contained in:
@@ -17,7 +17,15 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- pokedex-network
|
- pokedex-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'wget', '--quiet', '--tries=1', '--spider', 'http://localhost:80/']
|
test:
|
||||||
|
[
|
||||||
|
'CMD',
|
||||||
|
'wget',
|
||||||
|
'--quiet',
|
||||||
|
'--tries=1',
|
||||||
|
'--spider',
|
||||||
|
'http://localhost:80/'
|
||||||
|
]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
@@ -50,7 +58,15 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- pokedex-network
|
- pokedex-network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'wget', '--quiet', '--tries=1', '--spider', 'http://localhost:3000/health']
|
test:
|
||||||
|
[
|
||||||
|
'CMD',
|
||||||
|
'wget',
|
||||||
|
'--quiet',
|
||||||
|
'--tries=1',
|
||||||
|
'--spider',
|
||||||
|
'http://localhost:3000/health'
|
||||||
|
]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user