docker-compose.yml 955 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. version: "3.4"
  2. services:
  3. saleor:
  4. image: saleor
  5. build:
  6. context: ..
  7. dockerfile: .devcontainer/Dockerfile
  8. command: /bin/sh -c "while sleep 1000; do :; done"
  9. env_file:
  10. - common.env
  11. - backend.env
  12. depends_on:
  13. - db
  14. - redis
  15. volumes:
  16. - ..:/app
  17. dashboard:
  18. image: ghcr.io/saleor/saleor-dashboard:3.15.2
  19. restart: unless-stopped
  20. ports:
  21. - 9000:80
  22. db:
  23. image: library/postgres:13-alpine
  24. restart: unless-stopped
  25. volumes:
  26. - saleor-db:/var/lib/postgresql/data
  27. environment:
  28. - POSTGRES_USER=saleor
  29. - POSTGRES_PASSWORD=saleor
  30. redis:
  31. image: library/redis:7.0-alpine
  32. restart: unless-stopped
  33. volumes:
  34. - saleor-redis:/data
  35. mailpit:
  36. image: axllent/mailpit
  37. ports:
  38. - "1025" # SMTP Server
  39. - "8025" # Mailpit UI
  40. restart: unless-stopped
  41. volumes:
  42. saleor-db:
  43. driver: local
  44. saleor-redis:
  45. driver: local