-
-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.57 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
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
restart: unless-stopped
environment:
- USER_UID=1000
- USER_GID=1000
hostname: gitea
ports:
- 3000:3000 #webgui
- 2222:22 #ssh
expose:
- 3000
- 22
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitea/data:/data
#networks:
# - proxy
# - runner-network
#labels:
# - traefik.enable=true
# - traefik.http.routers.gitea.rule=Host(`git.example.com`)
# - traefik.http.services.gitea.loadbalancer.server.port=3000
# - traefik.docker.network=proxy
# # Part for local lan services only
# - traefik.http.routers.gitea.middlewares=local-ipwhitelist@file
#runner:
# image: docker.io/gitea/act_runner:nightly
# environment:
# #CONFIG_FILE: /config.yaml
# GITEA_INSTANCE_URL: "http://gitea:3000"
# GITEA_RUNNER_REGISTRATION_TOKEN: "<TOKEN>"
# GITEA_RUNNER_NAME: "gitea-runner-1"
# GITEA_RUNNER_LABELS: "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest,node:docker://node:20-bullseye,python:docker://python:3.12-slim,golang:docker://golang:1.22-bullseye,alpine:docker://alpine:3.19"
# volumes:
# #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitea/runners/config.yaml:/config.yaml
# - /var/run/docker.sock:/var/run/docker.sock # better use a docker socket proxy
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitea/runners/data:/data
# networks:
# - runner-network
#networks:
# proxy:
# external: true
# runner-network:
# external: true