forked from martvaha/code-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
29 lines (28 loc) · 714 Bytes
/
compose.yml
File metadata and controls
29 lines (28 loc) · 714 Bytes
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
services:
code-interpreter:
build:
context: .
dockerfile: Dockerfile
image: code-interpreter:latest
container_name: code-interpreter
restart: unless-stopped
privileged: true
command: /app/.venv/bin/fastapi run app/main.py --host 0.0.0.0 --port ${PORT:-8000} --reload
env_file:
- .env
environment:
- HOST_PATH=$PWD
ports:
- "${PORT:-8000}:${PORT:-8000}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-8000}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
- .:/app/
- venv:/app/.venv
- /var/run/docker.sock:/var/run/docker.sock
volumes:
venv: