2023-08-27 16:27:28 +03:00
|
|
|
version: "2.1"
|
2023-11-29 16:15:48 +03:00
|
|
|
networks:
|
|
|
|
network:
|
|
|
|
|
2023-08-27 16:27:28 +03:00
|
|
|
services:
|
2023-11-29 16:15:48 +03:00
|
|
|
web_service:
|
|
|
|
container_name: web_service
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: web.Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_started
|
|
|
|
rabbitmq:
|
|
|
|
condition: service_healthy
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- network
|
|
|
|
download_service:
|
|
|
|
container_name: download_service
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_started
|
|
|
|
rabbitmq:
|
|
|
|
condition: service_healthy
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- network
|
2023-08-27 16:27:28 +03:00
|
|
|
rabbitmq:
|
2023-11-29 16:15:48 +03:00
|
|
|
container_name: rabbitmq
|
2023-08-27 16:27:28 +03:00
|
|
|
image: rabbitmq:3.10.7-management
|
|
|
|
hostname: rabbitmq
|
|
|
|
restart: always
|
2023-11-29 16:15:48 +03:00
|
|
|
healthcheck:
|
|
|
|
test: rabbitmq-diagnostics -q ping
|
|
|
|
interval: 30s
|
|
|
|
timeout: 30s
|
|
|
|
retries: 3
|
2023-08-27 16:27:28 +03:00
|
|
|
environment:
|
|
|
|
- RABBITMQ_DEFAULT_USER=guest
|
|
|
|
- RABBITMQ_DEFAULT_PASS=guest
|
|
|
|
volumes:
|
|
|
|
- ./rabbitmq:/var/lib/rabbitmq
|
|
|
|
ports:
|
2023-11-29 16:15:48 +03:00
|
|
|
- "15672:15672"
|
|
|
|
- "5672:5672"
|
|
|
|
networks:
|
|
|
|
- network
|
2023-08-27 16:27:28 +03:00
|
|
|
redis:
|
|
|
|
container_name: redis_video_downloader
|
|
|
|
image: redis:latest
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
2023-11-29 16:15:48 +03:00
|
|
|
networks:
|
|
|
|
- network
|