12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- version: '3.9'
- services:
- redis-kv:
- image: redis:latest
- networks:
- - srht-net
- database:
- image: postgres:latest
- volumes:
- - db-data:/var/lib/postgresql/data
- - ./postgres_sh:/docker-entrypoint-initdb.d
- environment:
- POSTGRES_USER: sourcehut
- POSTGRES_PASSWORD: sourcehut
- POSTGRES_MULTIPLE_DATABASES: metasrht,{{database_name}}
- networks:
- - srht-net
- healthcheck:
- test: ["CMD", "pg_isready", "-U", "metasrht"]
- interval: 10s
- timeout: 5s
- retries: 3
- srhts:
- build: ./
- volumes:
- - git-data:/var/lib/git
- - mercurial-data:/var/lib/mercurial
- - ./config.ini:/etc/sr.ht/config.ini
- - ./srht.priv:/etc/sr.ht/srht.priv
- - ./srht.pub:/etc/sr.ht/srht.pub
- - static-data:/usr/lib/python3.9/site-packages/
- networks:
- - srht-net
- depends_on:
- database:
- condition: service_healthy
- nginx:
- image: nginx:alpine
- ports:
- - '80:80'
- volumes:
- - ./nginx_conf/:/etc/nginx/
- - static-data:/usr/lib/python3.9/site-packages/
- networks:
- - srht-net
- depends_on:
- - srhts
- volumes:
- db-data:
- git-data:
- mercurial-data:
- static-data:
- networks:
- srht-net:
- driver: bridge
- ipam:
- config:
- - subnet: 172.28.0.0/16
|