services: quote-api: build: . restart: unless-stopped 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' labels: - "traefik.enable=true" - "traefik.http.routers.kuwot-api.rule=Host(`api.fiatcode.dev`) && PathPrefix(`/kuwot/v1`)" - "traefik.http.routers.kuwot-api.entrypoints=web-secure" - "traefik.http.routers.kuwot-api.tls.certresolver=defaultResolver" - "traefik.http.routers.kuwot-api.middlewares=strip-prefix@file" - "traefik.http.services.kuwot-api.loadbalancer.server.port=8080" networks: - traefik-proxy networks: traefik-proxy: external: true