51 lines
829 B
YAML
51 lines
829 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
rabbitmq:
|
|
hostname: jobot-rabbit
|
|
image: rabbitmq:4
|
|
ports:
|
|
- "5672:5672"
|
|
- "15672:15672"
|
|
volumes:
|
|
- rabbitmq_data:/var/lib/rabbitmq/
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_PASSWORD: LocalDbPass
|
|
POSTGRES_DB: jobot
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- jobot
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: JOBot.Backend/Dockerfile
|
|
depends_on:
|
|
- postgres
|
|
ports:
|
|
- "5000:5000"
|
|
- "5001:5001"
|
|
networks:
|
|
- jobot
|
|
|
|
bot:
|
|
build:
|
|
context: .
|
|
dockerfile: JOBot.TClient/Dockerfile
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- jobot
|
|
|
|
networks:
|
|
jobot:
|
|
|
|
volumes:
|
|
postgres_data:
|
|
rabbitmq_data: |