update compose file
This commit is contained in:
parent
cc176b0ca8
commit
d634c3089d
1 changed files with 13 additions and 2 deletions
29
compose.yaml
29
compose.yaml
|
|
@ -1,29 +0,0 @@
|
|||
services:
|
||||
quote-api:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '8080:8080'
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./quotes.db:/app/quotes.db:ro
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'wget',
|
||||
'--quiet',
|
||||
'--tries=1',
|
||||
'--spider',
|
||||
'http://localhost:8080/health',
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
logging:
|
||||
driver: 'json-file'
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '3'
|
||||
Loading…
Add table
Add a link
Reference in a new issue