1
0

docker-compose.yml.template 847 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: '3.4'
  2. services:
  3. redis-kv:
  4. image: redis:latest
  5. networks:
  6. - srht-net
  7. database:
  8. image: postgres:latest
  9. volumes:
  10. - db-data:/var/lib/postgresql/data
  11. - ./postgres_sh:/docker-entrypoint-initdb.d
  12. environment:
  13. POSTGRES_USER: sourcehut
  14. POSTGRES_PASSWORD: sourcehut
  15. POSTGRES_MULTIPLE_DATABASES: metasrht,{{database_name}}
  16. networks:
  17. - srht-net
  18. srhts:
  19. build: ./
  20. volumes:
  21. - git-data:/var/lib/git
  22. - ./config.ini:/etc/sr.ht/config.ini
  23. networks:
  24. - srht-net
  25. depends_on:
  26. - database
  27. - redis-kv
  28. nginx:
  29. image: nginx:alpine
  30. ports:
  31. - '80:80'
  32. volumes:
  33. - ./nginx_conf/:/etc/nginx/
  34. networks:
  35. - srht-net
  36. depends_on:
  37. - srhts
  38. volumes:
  39. db-data:
  40. git-data:
  41. networks:
  42. srht-net:
  43. driver: bridge