docker-compose.yml 648 B

123456789101112131415161718192021
  1. version: '3'
  2. services:
  3. app:
  4. build: .
  5. restart: always
  6. ports:
  7. - "8000:1993"
  8. environment:
  9. - APPLICATION_NAME=${APPLICATION_NAME-My Deno Application}
  10. - VERSION=${VERSION-0.1.0}
  11. - DEBUG_LEVEL=${DEBUG_LEVEL-INFO}
  12. - DOCKER_USER_AGENT=${DOCKER_USER_AGENT-docker wget}
  13. - GREETING=${GREETING-hello world!}
  14. volumes:
  15. - ./src:/app/src:ro
  16. command: ["deno", "task", "dev"]
  17. healthcheck:
  18. test: ["CMD", "wget", "--user-agent=${DOCKER_USER_AGENT-docker wget}", "--no-verbose", "--tries=1", "--spider", "http://localhost:1993/health"]
  19. interval: 10s
  20. timeout: 2s
  21. retries: 3