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.
docker-bibliogram/docker-compose.yml

146 lines
3.2 KiB

version: '3'
services:
nginx:
build:
context: nginx/.
args:
- IMAGE=${NGINX_IMG:-nginx}
- TAG=${NGINX_TAG:-alpine}
container_name: ${NGINX_CONTAINER_NAME:-bibliogram-nginx}
restart: ${NGINX_RESTART:-unless-stopped}
expose:
- 80
volumes:
- nginx-cache:/etc/nginx/cache:rw
env_file:
- nginx.env
networks:
- default
4 years ago
- socials
bibliogram:
build:
context: bibliogram/
container_name: ${BG_CONTAINER_NAME:-bibliogram}
restart: ${BG_RESTART:-unless-stopped}
expose:
- "10407"
volumes:
3 years ago
- bibliogram-db:/app/db
4 years ago
- ./config/bibliogram.config.js:/app/config.js
4 years ago
networks:
4 years ago
- socials
4 years ago
nitter-redis:
image: ${NIR_IMG:-redis:6-alpine}
container_name: ${NIR_CONTAINER_NAME:-nitter-redis}
restart: ${NIR_RESTART:-unless-stopped}
environment:
- REDIS_REPLICATION_MODE=master
expose:
- 6379
volumes:
- nitter-redis:/var/lib/redis
networks:
- socials
4 years ago
nitter:
build:
context: nitter/
container_name: ${NI_CONTAINER_NAME:-nitter}
restart: ${NI_RESTART:-unless-stopped}
expose:
- "8080"
volumes:
4 years ago
- ./config/nitter.conf:/src/nitter.conf
networks:
4 years ago
- socials
depends_on:
- nitter-redis
3 years ago
omgur-redis:
image: ${OMGR_IMG:-redis:6-alpine}
container_name: ${OMGR_CONTAINER_NAME:-omgur-redis}
restart: ${OMGR_RESTART:-unless-stopped}
environment:
- REDIS_REPLICATION_MODE=master
expose:
- 6379
volumes:
- omgur-redis:/var/lib/redis
3 years ago
networks:
- socials
omgur:
build:
context: omgur/
container_name: ${OMG_CONTAINER_NAME:-omgur}
restart: ${OMG_RESTART:-unless-stopped}
environment:
- REDIS_HOST=omgur-redis
expose:
- 8080
networks:
- socials
depends_on:
- omgur-redis
3 years ago
invidious-postgres:
image: ${INVP_IMG:-postgres:10-alpine}
container_name: ${INVP_CONTAINER_NAME:-invidious-postgres}
restart: ${INVP_RESTART:-unless-stopped}
volumes:
- invidious-postgres-data:/var/lib/postgresql/data
- ./invidious/config/sql:/config/sql:ro
- ./invidious/docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh:ro
env_file:
- invidious-postgres.env
expose:
- 5432
networks:
- socials
invidious:
build:
context: invidious/
dockerfile: docker/Dockerfile
container_name: ${INV_CONTAINER_NAME:-invidious}
restart: ${INV_RESTART:-unless-stopped}
env_file:
- invidious-postgres.env
- invidious.env
expose:
- 3000
volumes:
- ./config/invidious.yml:/config/config.yml
networks:
- socials
depends_on:
- invidious-postgres
3 years ago
libreddit:
build:
context: libreddit/
container_name: ${LRT_CONTAINER_NAME:-libreddit}
restart: ${LRT_RESTART:-unless-stopped}
env_file:
- libreddit.env
expose:
- 8080
networks:
- socials
volumes:
nginx-cache:
3 years ago
bibliogram-db:
nitter-redis:
omgur-redis:
3 years ago
invidious-postgres-data:
networks:
default:
external:
name: ${NETWORK:-webservices}
4 years ago
socials: