🔗 Free Modern URL Shortener. https://kutt.it/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
677 B

  1. version: "3"
  2. services:
  3. kutt:
  4. image: kutt/kutt
  5. depends_on:
  6. - postgres
  7. - redis
  8. command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
  9. ports:
  10. - "3000:3000"
  11. env_file:
  12. - .env
  13. environment:
  14. DB_HOST: postgres
  15. DB_NAME: kutt
  16. DB_USER: user
  17. DB_PASSWORD: pass
  18. REDIS_HOST: redis
  19. redis:
  20. image: redis:6.0-alpine
  21. volumes:
  22. - redis_data:/data
  23. postgres:
  24. image: postgres:12-alpine
  25. environment:
  26. POSTGRES_USER: user
  27. POSTGRES_PASSWORD: pass
  28. POSTGRES_DB: kutt
  29. volumes:
  30. - postgres_data:/var/lib/postgresql/data
  31. volumes:
  32. redis_data:
  33. postgres_data: