docker-compose.yml 753 B

123456789101112131415161718192021222324252627282930313233343536
  1. services:
  2. postgres:
  3. image: postgres:16-alpine
  4. container_name: dotouch-postgres
  5. restart: unless-stopped
  6. environment:
  7. POSTGRES_USER: dotouch
  8. POSTGRES_PASSWORD: dotouch
  9. POSTGRES_DB: dotouch
  10. ports:
  11. - "5432:5432"
  12. volumes:
  13. - pgdata:/var/lib/postgresql/data
  14. healthcheck:
  15. test: ["CMD-SHELL", "pg_isready -U dotouch -d dotouch"]
  16. interval: 10s
  17. timeout: 5s
  18. retries: 5
  19. redis:
  20. image: redis:7-alpine
  21. container_name: dotouch-redis
  22. restart: unless-stopped
  23. ports:
  24. - "6379:6379"
  25. volumes:
  26. - redisdata:/data
  27. healthcheck:
  28. test: ["CMD", "redis-cli", "ping"]
  29. interval: 10s
  30. timeout: 5s
  31. retries: 5
  32. volumes:
  33. pgdata:
  34. redisdata: