name: server
services:
server:
build:
context: ../../
dockerfile: ./docker/server/Dockerfile
image: server-client
environment:
- RUST_LOG=debug
# TODO: find a better way to healthcheck on distroless containers
healthcheck:
test:
interval: 10s # health check starts after this time, then repeats
timeout: 11s # if "true" somehow fails, fail the healthcheck
retries: 0 # "true" should always succeed, don't retry
start_period: 10s # container initialization time
volumes:
- ./toe-beans.toml:/toe-beans.toml
command: server --config /