docker-compose.yml 540 B

1234567891011121314151617181920
  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. - GREETING=${GREETING-hello world!}
  13. volumes:
  14. - ./src:/app/src:ro
  15. command: ["deno", "task", "dev"]
  16. healthcheck:
  17. test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1993/health"]
  18. interval: 10s
  19. timeout: 2s
  20. retries: 3