-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (75 loc) · 1.92 KB
/
docker-compose.yaml
File metadata and controls
76 lines (75 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
ollama:
image: docker.io/ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434"
environment:
- OLLAMA_HOST=0.0.0.0
- OLLAMA_MODEL=qwen2.5-coder:3b
- OLLAMA_PORT=11434
networks:
- review_demo
code-review-server:
image: docker.io/superstep/code-review-server:0.0.6
container_name: code-review-server
environment:
- GITEA_BASE_URL=http://gitea:3000
- GITEA_TOKEN=ffcd50d94a40abd4c2c93a93a65edddfdf462ba1
- GITEA_OWNER=gitea_admin
- GITEA_REPOSITORY=example
- AI_PROVIDER=ollama
- AI_READ_TIMEOUT_SEC=600
# - GEMINI_TOKEN=our-gemini-api-token
# - GEMINI_MODEL=gemini-2.0-flash
- OLLAMA_BASE_URL=http://ollama:11434
- OLLAMA_MODEL=qwen2.5-coder:3b
- GIT_WORK_DIRECTORY=/git
- JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
ports:
- "8080:8080"
- "5005:5005"
volumes:
- .git/:/git/
networks:
- review_demo
depends_on:
- gitea
- ollama
gitea:
image: docker.gitea.com/gitea:1.23.7
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: always
networks:
- review_demo
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "7999:22"
depends_on:
- db
db:
image: docker.io/library/postgres:14
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
networks:
- review_demo
volumes:
- ./postgres:/var/lib/postgresql/data
networks:
review_demo:
external: false