fix: docker-compose server running command

This commit is contained in:
Paramtamtam 2023-01-29 15:56:58 +04:00
parent 0bd989e493
commit da3b864e02
No known key found for this signature in database
GPG Key ID: 366371698FAD0A2B

View File

@ -23,9 +23,9 @@ services:
<<: *app-service
ports:
- "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:
test: ['CMD', '/tmp/app', 'healthcheck', '--log-json']
test: ['CMD', '/tmp/app', '--log-json', 'healthcheck']
interval: 4s
timeout: 1s
start_period: 5s