-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.04 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
version: '3.8'
services:
director:
build: .
container_name: ota-director
restart: unless-stopped
command: uvicorn src.server.director:app --host 0.0.0.0 --port 8000 --limit-concurrency 100 --limit-max-requests 1000
ports:
- "8000:8000"
volumes:
- .:/app
environment:
- PYTHONPATH=/app
image-repo:
build: .
container_name: ota-image-repo
restart: unless-stopped
command: uvicorn src.server.image_repo:app --host 0.0.0.0 --port 8001 --limit-concurrency 100 --limit-max-requests 1000
ports:
- "8001:8001"
volumes:
- .:/app
- ./repo_storage:/app/repo_storage
environment:
- PYTHONPATH=/app
simulation:
build: .
container_name: ota-simulation
command: python simulation.py
depends_on:
- director
- image-repo
volumes:
- .:/app
environment:
- PYTHONPATH=/app
- DIRECTOR_URL=http://director:8000
- IMAGE_REPO_URL=http://image-repo:8001
tty: true # For rich dashboard interaction
stdin_open: true