35 lines
794 B
YAML
35 lines
794 B
YAML
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
# База данных PostgreSQL
|
||
|
postgres:
|
||
|
image: postgres:15
|
||
|
container_name: postgres-db
|
||
|
environment:
|
||
|
POSTGRES_USER: postgres
|
||
|
POSTGRES_PASSWORD: postgres
|
||
|
POSTGRES_DB: mydb
|
||
|
ports:
|
||
|
- "5432:5432"
|
||
|
|
||
|
# RabbitMQ
|
||
|
rabbitmq:
|
||
|
image: rabbitmq:3-management
|
||
|
container_name: rabbitmq
|
||
|
environment:
|
||
|
RABBITMQ_DEFAULT_USER: user
|
||
|
RABBITMQ_DEFAULT_PASS: password
|
||
|
ports:
|
||
|
- "5672:5672" # для приложений
|
||
|
- "15672:15672" # для панели управления
|
||
|
|
||
|
# Nginx для реверс-прокси (если нужно для других сервисов)
|
||
|
nginx:
|
||
|
image: nginx:latest
|
||
|
container_name: nginx
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
depends_on:
|
||
|
- rabbitmq
|
||
|
|