|
|
|
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
|
|
|
|
env_file:
|
|
|
|
- nginx.env
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- socials
|
|
|
|
|
|
|
|
bibliogram:
|
|
|
|
build:
|
|
|
|
context: bibliogram/
|
|
|
|
container_name: ${BG_CONTAINER_NAME:-bibliogram}
|
|
|
|
restart: ${BG_RESTART:-unless-stopped}
|
|
|
|
expose:
|
|
|
|
- "10407"
|
|
|
|
volumes:
|
|
|
|
- db:/app/db
|
|
|
|
- ./config/bibliogram.config.js:/app/config.js
|
|
|
|
networks:
|
|
|
|
- socials
|
|
|
|
|
|
|
|
nitter:
|
|
|
|
build:
|
|
|
|
context: nitter/
|
|
|
|
container_name: ${NI_CONTAINER_NAME:-nitter}
|
|
|
|
restart: ${NI_RESTART:-unless-stopped}
|
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
volumes:
|
|
|
|
- ./config/nitter.conf:/src/nitter.conf
|
|
|
|
networks:
|
|
|
|
- socials
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: ${NETWORK:-webservices}
|
|
|
|
socials:
|