-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.8'
services:
rusta-gateway:
build:
context: .
dockerfile: Dockerfile
image: rusta:latest
container_name: rusta-gateway
ports:
- "5900:5900"
volumes:
# Mount config.json from host to container
- ./config.json:/app/config.json:ro
environment:
- RUST_LOG=info
- RUSTA_HOST=0.0.0.0
- RUSTA_PORT=5900
restart: unless-stopped
networks:
- rusta-network
rusta-ui:
build:
# Use repository root as build context so the UI Dockerfile can access
# workspace-level files (Cargo.toml) and the full workspace source.
context: .
dockerfile: crates/rusta-ui/Dockerfile
image: rusta-ui:latest
container_name: rusta-ui
ports:
- "8080:80"
restart: unless-stopped
networks:
- rusta-network
# Optional: WebSocket test backend
# ws-backend:
# build:
# context: ./examples/websocket_routing
# dockerfile: Dockerfile
# container_name: ws-backend
# ports:
# - "3000:3000"
# networks:
# - rusta-network
networks:
rusta-network:
driver: bridge