mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
fix: docker-compose server running command
This commit is contained in:
parent
0bd989e493
commit
da3b864e02
@ -23,9 +23,9 @@ services:
|
|||||||
<<: *app-service
|
<<: *app-service
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080/tcp" # Open <http://127.0.0.1:8080>
|
- "8080:8080/tcp" # Open <http://127.0.0.1:8080>
|
||||||
command: sh -c "go build -o /tmp/app ./cmd/error-pages && /tmp/app serve"
|
command: sh -c "go build -buildvcs=false -o /tmp/app ./cmd/error-pages && /tmp/app serve"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', '/tmp/app', 'healthcheck', '--log-json']
|
test: ['CMD', '/tmp/app', '--log-json', 'healthcheck']
|
||||||
interval: 4s
|
interval: 4s
|
||||||
timeout: 1s
|
timeout: 1s
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
Loading…
Reference in New Issue
Block a user