Files
demo/compose/ncc-compose/docker-compose.yaml
Pavel Guzaev 431b4f5cfd all demo
2024-03-09 17:36:50 +05:00

218 lines
5.4 KiB
YAML

version: '2.3'
services:
redis-naumb:
image: ncc-75.nau.team/redis:5.0.6
restart: always
postgres:
image: sd-docker-registry2.naumen.ru/library/postgres:12RU
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_MULTIPLE_DATABASES=ncc_system,chat,ncc_report
volumes:
- ./dbdata:/var/lib/postgresql/data/
- ./createdb:/docker-entrypoint-initdb.d
healthcheck:
test: "pg_isready -q -U ncc_system -d ncc_system && ! pidof pg_restore"
interval: 30s
start_period: 5m
stop_grace_period: 15s
consul-server:
image: "ncc-75.nau.team/consul:1.6"
environment:
CONSUL_LOCAL_CONFIG: "{\"disable_update_check\": true}"
CONSUL_BIND_INTERFACE: "eth0"
hostname: "consul-server"
ports:
- "${CONSUL_PORT:-8500}:8500"
volumes:
- "./consul-data:/consul/data"
command: agent -server -data-dir="/consul/data" -bootstrap -domain="example.com" -client="0.0.0.0" -advertise="127.0.0.1" -ui
naucore:
image: ncc-75.nau.team/naucore:7.5
ports:
- "${NCC_PORT:-3242}:3242"
environment:
HOSTNAME: "naucore"
domain_id: "ncc.net"
node_id: "naucore"
CONSUL_SERVER: "consul-server:8500"
restart: always
depends_on:
postgres:
condition: service_healthy
links:
- consul-server
nauauth:
image: ncc-75.nau.team/nauauth:7.5
tty: yes
environment:
bus.ip: "naucore"
restart: always
depends_on:
postgres:
condition: service_healthy
links:
- consul-server
- naucore
naubuddy:
image: ncc-75.nau.team/naubuddy:7.5
environment:
bus.ip: "naucore"
systemdb.engine: "postgresql"
systemdb.host: "postgres"
systemdb.port: '5432'
systemdb.database: "ncc_system"
systemdb.user: "ncc_system"
systemdb.password: "ncc_system"
reportdb.engine: "postgresql"
reportdb.host: "postgres"
reportdb.port: '5432'
reportdb.database: "ncc_report"
reportdb.user: "ncc_system"
reportdb.password: "ncc_system"
links:
- naucore
- postgres
restart: always
tty: yes
volumes:
- "./spool/naubuddy:/opt/naumen/nauphone/spool/naubuddy"
depends_on:
postgres:
condition: service_healthy
nauconfig:
image: ncc-75.nau.team/nauconfig:7.5
environment:
bus.ip: "naucore"
systemdb.engine: "postgresql"
systemdb.host: "postgres"
systemdb.port: '5432'
systemdb.database: "ncc_system"
systemdb.user: "ncc_system"
systemdb.password: "ncc_system"
reportdb.engine: "postgresql"
reportdb.host: "postgres"
reportdb.port: '5432'
reportdb.database: "ncc_report"
reportdb.user: "ncc_system"
reportdb.password: "ncc_system"
useBuddyListProxy: "true"
links:
- naucore
- postgres
restart: always
tty: yes
depends_on:
postgres:
condition: service_healthy
naufileservice:
image: ncc-75.nau.team/naufileservice:7.5
ports:
- "${NCCF_PORT:-8088}:8088"
environment:
CONSUL_SERVER: "consul-server:8500"
bus.ip: "naucore"
ncc_ip: "naucore"
log_level: "4"
tty: yes
volumes:
- "./spool/recconv:/opt/naumen/nauphone/spool/naurecconv"
- "./spool/naubuddy:/opt/naumen/nauphone/spool/naubuddy"
- "./spool/naumb:/opt/naumen/nauphone/spool/naumb"
- "./spool/nauqpm:/opt/naumen/nauphone/spool/nauqpm"
links:
- naucore
- postgres
depends_on:
postgres:
condition: service_healthy
naumb:
image: ncc-75.nau.team/naumb:7.5
environment:
bus.ip: "naucore"
redis.host: "redis-naumb"
systemdb.engine: "postgresql"
systemdb.host: "postgres"
systemdb.port: '5432'
systemdb.database: "ncc_system"
systemdb.user: "ncc_system"
systemdb.password: "ncc_system"
reportdb.engine: "postgresql"
reportdb.host: "postgres"
reportdb.port: '5432'
reportdb.database: "ncc_report"
reportdb.user: "ncc_system"
reportdb.password: "ncc_system"
gateways.service: "nausd"
NCC_LOG_TYPE: "raw"
volumes:
- "./spool/naubuddy:/opt/naumen/nauphone/spool/naubuddy"
- "./spool/naumb:/opt/naumen/nauphone/spool/naumb"
links:
- naucore
- postgres
- redis-naumb
restart: always
depends_on:
postgres:
condition: service_healthy
naumbstat:
image: ncc-75.nau.team/naumbstat:7.5
tty: yes
environment:
bus.ip: "naucore"
redis.host: "redis-naumb"
links:
- naucore
- postgres
- redis-naumb
depends_on:
postgres:
condition: service_healthy
nauqpm:
image: ncc-75.nau.team/nauqpm:7.5
volumes:
- "./spool/nauqpm:/opt/naumen/nauphone/spool/nauqpm"
environment:
bus.ip: "naucore"
links:
- naucore
- postgres
depends_on:
postgres:
condition: service_healthy
chat:
image: ncc-75.nau.team/chat:7.5
ports:
- "${CHAT_PORT:-8081}:8081"
- "${WS_PORT:-9000}:9000"
environment:
bus.ip: "naucore"
chatdb.engine: postgresql
chatdb.host: postgres
chatdb.port: '5432'
chatdb.database: chat
chatdb.user: "ncc_system"
chatdb.password: "ncc_system"
links:
- naucore
- postgres
restart: always
depends_on:
postgres:
condition: service_healthy