-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 920 Bytes
/
docker-compose.yml
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
services:
api:
build: .
command: fastapi dev --host 0.0.0.0 --port 8000 repo_tool/api
develop:
watch:
- action: sync
path: ./repo_tool
target: /app/repo_tool
- action: rebuild
path: pyproject.toml
ports:
- "8000:8000"
volumes:
- ./repositories:/app/repositories
- ./digests:/app/digests
- ./.gptinclude:/app/.gptinclude
- ./.gptignore:/app/.gptignore
- ./repo_tool.db:/app/repo_tool.db
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
env_file:
- .env
deploy:
resources:
limits:
memory: 4G
reservations:
memory: 2G
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
volumes:
repositories:
digests: