105 lines
2.3 KiB
YAML
105 lines
2.3 KiB
YAML
version: '3.9'
|
|
|
|
networks:
|
|
moxitech-network:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 10.5.0.0/16
|
|
gateway: 10.5.0.1
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:13.3
|
|
container_name: moxitech-stream-postgresql
|
|
environment:
|
|
POSTGRES_DB: "${POSTGRES_DB}"
|
|
POSTGRES_USER: "${POSTGRES_USER}"
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
|
env_file: ".env"
|
|
networks:
|
|
moxitech-network:
|
|
ipv4_address: 10.5.0.2
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
fullstream_server:
|
|
container_name: moxitech-fullstream-application
|
|
build:
|
|
context: ./fullstream
|
|
dockerfile: Dockerfile
|
|
env_file: ".env"
|
|
ports:
|
|
- "${CHAT_ADDRESS_PORT}:${CHAT_ADDRESS_PORT}"
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
moxitech-network:
|
|
ipv4_address: 10.5.0.3
|
|
restart: always
|
|
|
|
turn_server:
|
|
container_name: moxitech-turn-server
|
|
build:
|
|
context: ./turn
|
|
dockerfile: Dockerfile
|
|
env_file: ".env"
|
|
depends_on:
|
|
- nats
|
|
- nats-1
|
|
- postgres
|
|
networks:
|
|
moxitech-network:
|
|
ipv4_address: 10.5.0.5
|
|
restart: always
|
|
|
|
|
|
sender_service:
|
|
container_name: moxitech-sender-service
|
|
build:
|
|
context: ./sender.service
|
|
dockerfile: Dockerfile
|
|
env_file: ".env"
|
|
depends_on:
|
|
- nats
|
|
- nats-1
|
|
- postgres
|
|
networks:
|
|
moxitech-network:
|
|
ipv4_address: 10.5.0.4
|
|
restart: always
|
|
|
|
|
|
|
|
nats:
|
|
image: nats
|
|
container_name: moxitech-nats
|
|
ports:
|
|
- "8222:8222"
|
|
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --http_port 8222 "
|
|
networks:
|
|
moxitech-network:
|
|
ipv4_address: 10.5.0.9
|
|
nats-1:
|
|
image: nats
|
|
container_name: moxitech-nats-1
|
|
command: "--cluster_name NATS --cluster nats://0.0.0.0:6222 --routes=nats://ruser:T0pS3cr3t@nats:6222"
|
|
networks:
|
|
moxitech-network:
|
|
ipv4_address: 10.5.0.10
|
|
depends_on: ["nats"]
|
|
|
|
# rabbitmq:
|
|
# container_name: moxitech-fullstream-rabbitmq
|
|
# image: rabbitmq:3.13.4-management
|
|
# hostname: ${RABBITMQ_HOSTNAME}
|
|
# restart: always
|
|
# environment:
|
|
# - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
|
|
# - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
|
|
# ports:
|
|
# - "${RABBITMQ_PORT}:${RABBITMQ_PORT}"
|
|
# networks:
|
|
# moxitech-network:
|
|
# ipv4_address: 10.5.0.4
|
|
|