46 lines
787 B
YAML
46 lines
787 B
YAML
version: '3'
|
|
|
|
services:
|
|
rabbitmq:
|
|
image: rabbitmq:3-management
|
|
container_name: rabbitmq
|
|
networks:
|
|
- rustnet
|
|
|
|
rust-compiler:
|
|
build:
|
|
context: ./rust-compiler
|
|
dockerfile: Dockerfile
|
|
container_name: rust-compiler
|
|
networks:
|
|
- rustnet
|
|
environment:
|
|
- RABBITMQ_HOST=rabbitmq
|
|
|
|
web-server:
|
|
build:
|
|
context: ./web-server
|
|
dockerfile: Dockerfile
|
|
container_name: web-server
|
|
ports:
|
|
- "5000:5000"
|
|
depends_on:
|
|
- rust-compiler
|
|
- rabbitmq
|
|
networks:
|
|
- rustnet
|
|
environment:
|
|
- RABBITMQ_HOST=rabbitmq
|
|
|
|
web-ui:
|
|
build:
|
|
context: ./web-ui
|
|
dockerfile: Dockerfile
|
|
container_name: web-ui
|
|
ports:
|
|
- "80:80"
|
|
networks:
|
|
- rustnet
|
|
|
|
networks:
|
|
rustnet: |