-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.52 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
version: "3"
services:
gitea:
image: gitea/gitea:latest
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
networks:
- gitea_net
volumes:
- ./gitea_data:/data
- ./gitea_conf:/data/gitea/conf
ports:
- "3000:3000"
- "10022:22"
depends_on:
- db
db:
image: postgres:15
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
networks:
- gitea_net
volumes:
- ./gitea_postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
act_runner:
image: gitea/act_runner:latest
container_name: act_runner
restart: always
depends_on:
- gitea
networks:
- gitea_net
environment:
- CONFIG_FILE=/config.yaml
- GITEA_INSTANCE_URL=http://gitea:3000/
- GITEA_RUNNER_REGISTRATION_TOKEN=tOCwFvUOIFYzQCnc7MVt3z0OwEewLAhTUyZ4TUTv
- GITEA_RUNNER_NAME=act_runner
# runs-on 的标签实际上是下面这个,上面的只是名字
# GITEA_RUNNER_LABELS: "ubuntu-latest"
volumes:
- ./act_runner_data/config.yaml:/config.yaml
- ./act_runner_data/data:/data
- ./act_runner_data/cache:/root/.cache
- /var/run/docker.sock:/var/run/docker.sock
# volumes:
# gitea_data:
# gitea_postgres_data:
networks:
gitea_net: