Klip: Kutt like it's perfect. An easy to use self-hosted URL shortener. https://uwu.ryukyu/
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.
 
 
 
 

44 lines
767 B

  1. version: "3"
  2. services:
  3. kutt:
  4. build: .
  5. container_name: kutt
  6. depends_on:
  7. - postgres
  8. - redis
  9. command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
  10. ports:
  11. - "3000:3000"
  12. env_file:
  13. - .env
  14. environment:
  15. DB_HOST: postgres
  16. DB_NAME: kutt
  17. DB_USER: user
  18. DB_PASSWORD: pass
  19. networks:
  20. - kutt-network
  21. redis:
  22. image: redis:alpine
  23. container_name: redis
  24. networks:
  25. - kutt-network
  26. postgres:
  27. image: postgres:12-alpine
  28. container_name: postgres
  29. environment:
  30. POSTGRES_USER: user
  31. POSTGRES_PASSWORD: pass
  32. POSTGRES_DB: kutt
  33. ports:
  34. - "54323:5432"
  35. networks:
  36. - kutt-network
  37. networks:
  38. kutt-network:
  39. driver: "bridge"