Updated compose file for better Docker integration
This commit is contained in:
parent
4a08a64dc9
commit
13dcd1ff52
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Containerfile
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -13,7 +15,7 @@ services:
|
||||||
- INTERVAL=${INTERVAL:-5000}
|
- INTERVAL=${INTERVAL:-5000}
|
||||||
- THRESHOLD=${THRESHOLD:-0.01}
|
- THRESHOLD=${THRESHOLD:-0.01}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "http://localhost:3000/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue