1
0

docker-compose.yml.template 483 B

123456789101112131415161718192021222324252627
  1. version: '3.4'
  2. services:
  3. redis-kv:
  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. srhts:
  14. build: ./
  15. ports:
  16. - {{PORTS}}
  17. volumes:
  18. - git-data:/var/lib/git
  19. - ./config.ini:/etc/sr.ht/config.ini
  20. links:
  21. - database
  22. - redis-kv
  23. volumes:
  24. db-data:
  25. git-data: