# Docker Compose description of the combined application. # # 'docker-compose up' will run this. version: '3.2' # requires Docker Compose 1.13 or later # This section describes the various containers (services). services: rabbitmq: image: 'rabbitmq:3.8-management-alpine' ports: - '5672:5672' - '15672:15672' networks: - network predictor: build: context: . dockerfile: Dockerfile-predictor environment: RABBIT_URL: 'amqp://rabbitmq?connection_attempts=5&retry_delay=5' networks: - network depends_on: - rabbitmq deploy: replicas: 5 bot: build: context: . dockerfile: Dockerfile-bot environment: TOKEN: $TOKEN RABBIT_URL: 'amqp://rabbitmq?connection_attempts=5&retry_delay=5' networks: - network depends_on: - rabbitmq - predictor networks: # Declare our private network. We must declare one for the magic # Docker DNS to work, but otherwise its default settings are fine. network: { }