docker-compose.yml 501 B

12345678910111213141516171819202122232425262728
  1. version: '3.4'
  2. services:
  3. redis:
  4. image: redis:latest
  5. database:
  6. image: postgres:latest
  7. environment:
  8. POSTGRES_USER: sourcehut
  9. POSTGRES_DB: sourcehut
  10. POSTGRES_PASSWORD: sourcehut
  11. volumes:
  12. - db-data:/var/lib/postgresql/data
  13. git:
  14. build: ./git/
  15. ports:
  16. - "5000:5000"
  17. - "5001:5001"
  18. volumes:
  19. - git-data:/var/lib/git
  20. - ./config.ini:/etc/sr.ht/config.ini
  21. links:
  22. - database
  23. - redis
  24. volumes:
  25. db-data:
  26. git-data: