project-codes/docker-compose.yml

46 lines
787 B
YAML
Raw Permalink Normal View History

2024-10-16 17:08:07 +08:00
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: