Migrate from woodpecker to Forgejo Actions
This commit is contained in:
parent
eae8a1dfe1
commit
68ac24e29f
2 changed files with 15 additions and 34 deletions
|
@ -1,15 +1,29 @@
|
|||
[volumes]
|
||||
data = {}
|
||||
runner = {}
|
||||
|
||||
[services.forgejo]
|
||||
image = "git.korhonen.cc/functionalhacker/forgejo-asciidoc"
|
||||
container_name = "forgejo"
|
||||
environment = ["TZ=Europe/Helsinki"]
|
||||
environment = ["TZ=Europe/Helsinki", "USER_UID=1000", "USER_GID=1000"]
|
||||
restart = "unless-stopped"
|
||||
networks = ["postgres", "proxy"]
|
||||
ports = ["22:22"]
|
||||
volumes = ["data:/data", "/etc/localtime:/etc/localtime:ro"]
|
||||
|
||||
[services.runner]
|
||||
image = "code.forgejo.org/forgejo/runner:3.3.0"
|
||||
container_name = "forgejo-runner"
|
||||
user = "root:root"
|
||||
volumes = [
|
||||
"runner:/data",
|
||||
"/var/run/docker.sock:/var/run/docker.sock",
|
||||
"/etc/localtime:/etc/localtime:ro",
|
||||
]
|
||||
environment = ["SOCKFILE=/var/run/docker.sock"]
|
||||
restart = "unless-stopped"
|
||||
command = "forgejo-runner daemon -c /data/config.yaml"
|
||||
|
||||
[networks.postgres]
|
||||
external = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue