Compare commits
9 Commits
cbed02d0cb
...
4f083dfe44
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f083dfe44 | |||
| 98617d8a21 | |||
| 9fe8704abe | |||
| 0e85234631 | |||
| 630b78123d | |||
| 8136cc18aa | |||
| 1c660712da | |||
| c614312981 | |||
| 5b9ee5c221 |
@@ -1,6 +0,0 @@
|
|||||||
# Paths
|
|
||||||
APPDATA_PATH=/home/username/appdata
|
|
||||||
|
|
||||||
# Ports
|
|
||||||
DNS_PORT=53
|
|
||||||
ADMIN_PORT=
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Environment Variables
|
|
||||||
JWT_SECRET=
|
|
||||||
TOKEN_EXPIRY=
|
|
||||||
ALLOW_NEW_ACCOUNTS=
|
|
||||||
DEBUG=
|
|
||||||
DISABLE_ACCOUNTS=
|
|
||||||
DISABLE_INTERNAL_ACCOUNTS=
|
|
||||||
OIDC_ENABLED=
|
|
||||||
|
|
||||||
# Paths
|
|
||||||
APPDATA_PATH=/home/username/appdata
|
|
||||||
|
|
||||||
# Ports
|
|
||||||
PORT=
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
services:
|
|
||||||
caddy:
|
|
||||||
image: docker.io/ryuupendragon/caddy-cloudflare-ddns:2.10.0
|
|
||||||
container_name: caddy
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
environment:
|
|
||||||
- CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN}
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/caddy/caddy-file:/etc/caddy
|
|
||||||
- ${APPDATA_PATH}/caddy/caddy-config:/config
|
|
||||||
- ${APPDATA_PATH}/caddy/caddy-data:/data
|
|
||||||
- ${APPDATA_PATH}/caddy/caddy-logs:/logs
|
|
||||||
- ${APPDATA_PATH}/caddy/caddy-srv:/srv
|
|
||||||
ports:
|
|
||||||
- ${HTTP_PORT}:80
|
|
||||||
- ${HTTPS_PORT}:443
|
|
||||||
- ${HTTPS_PORT}:443/udp
|
|
||||||
networks:
|
|
||||||
- frontend
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
networks:
|
|
||||||
frontend:
|
|
||||||
external: true
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
services:
|
|
||||||
forgejo_db:
|
|
||||||
image: docker.io/library/mariadb:11.7.2
|
|
||||||
container_name: forgejo_db
|
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/forgejo/db:/var/lib/mysql
|
|
||||||
ports:
|
|
||||||
- ${DB_PORT}:3306
|
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
||||||
start_period: 10s
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 3
|
|
||||||
|
|
||||||
forgejo_server:
|
|
||||||
image: codeberg.org/forgejo/forgejo:11.0.1-rootless
|
|
||||||
container_name: forgejo_server
|
|
||||||
depends_on:
|
|
||||||
forgejo_db:
|
|
||||||
condition: service_healthy
|
|
||||||
user: ${PUID}:${PGID}
|
|
||||||
environment:
|
|
||||||
- FORGEJO__database__DB_TYPE=mysql
|
|
||||||
- FORGEJO__database__HOST=forgejo_db
|
|
||||||
- FORGEJO__database__NAME=${MYSQL_DATABASE}
|
|
||||||
- FORGEJO__database__USER=${MYSQL_USER}
|
|
||||||
- FORGEJO__database__PASSWD=${MYSQL_PASSWORD}
|
|
||||||
volumes:
|
|
||||||
- ${APPDATA_PATH}/forgejo/config:/etc/gitea
|
|
||||||
- ${APPDATA_PATH}/forgejo/data:/var/lib/gitea
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
ports:
|
|
||||||
- ${SERVER_PORT}:3000
|
|
||||||
- ${SSH_PORT}:22
|
|
||||||
restart: unless-stopped
|
|
||||||
@@ -12,3 +12,5 @@ services:
|
|||||||
- ./config.yml:/config.yml
|
- ./config.yml:/config.yml
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
ports:
|
||||||
|
- ${PORT}:${PORT}
|
||||||
@@ -32,31 +32,40 @@ runner:
|
|||||||
fetch_timeout: 5s
|
fetch_timeout: 5s
|
||||||
# The interval for fetching the job from the Gitea instance.
|
# The interval for fetching the job from the Gitea instance.
|
||||||
fetch_interval: 2s
|
fetch_interval: 2s
|
||||||
|
# The github_mirror of a runner is used to specify the mirror address of the github that pulls the action repository.
|
||||||
|
# It works when something like `uses: actions/checkout@v4` is used and DEFAULT_ACTIONS_URL is set to github,
|
||||||
|
# and github_mirror is not empty. In this case,
|
||||||
|
# it replaces https://github.com with the value here, which is useful for some special network environments.
|
||||||
|
github_mirror: ''
|
||||||
# The labels of a runner are used to determine which jobs the runner can run, and how to run them.
|
# The labels of a runner are used to determine which jobs the runner can run, and how to run them.
|
||||||
# Like: "macos-arm64:host" or "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
# Like: "macos-arm64:host" or "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||||
# Find more images provided by Gitea at https://gitea.com/docker.gitea.com/runner-images .
|
# Find more images provided by Gitea at https://gitea.com/docker.gitea.com/runner-images .
|
||||||
# If it's empty when registering, it will ask for inputting labels.
|
# If it's empty when registering, it will ask for inputting labels.
|
||||||
# If it's empty when execute `daemon`, will use labels in `.runner` file.
|
# If it's empty when execute `daemon`, will use labels in `.runner` file.
|
||||||
labels:
|
labels:
|
||||||
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
- "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-24.04"
|
||||||
- "ubuntu-arm64:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
- "ubuntu-latest-full:docker://ghcr.io/catthehacker/ubuntu:full-24.04"
|
||||||
- "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
|
- "ubuntu-arm64:docker://ghcr.io/catthehacker/ubuntu:act-24.04"
|
||||||
- "ubuntu-cat:docker://ghcr.io/catthehacker/ubuntu:act-latest"
|
- "ubuntu-arm64-full:docker://ghcr.io/catthehacker/ubuntu:full-24.04"
|
||||||
- "bookworm:docker://node:20-bookworm"
|
- "ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04"
|
||||||
- "bookworm-slim:docker://node:24-bookworm-slim"
|
- "ubuntu-22.04-full:docker://ghcr.io/catthehacker/ubuntu:full-22.04"
|
||||||
- "bullseye:docker://node:20-bullseye"
|
- "trixie:docker://node:25-trixie"
|
||||||
- "bullseye-slim:docker://node:20-bullseye-slim"
|
- "trixie-slim:docker://node:25-trixie-slim"
|
||||||
|
- "bookworm:docker://node:25-bookworm"
|
||||||
|
- "bookworm-slim:docker://node:25-bookworm-slim"
|
||||||
|
- "bullseye:docker://node:25-bullseye"
|
||||||
|
- "bullseye-slim:docker://node:25-bullseye-slim"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
# Enable cache server to use actions/cache.
|
# Enable cache server to use actions/cache.
|
||||||
enabled: false
|
enabled: true
|
||||||
# The directory to store the cache data.
|
# The directory to store the cache data.
|
||||||
# If it's empty, the cache data will be stored in $HOME/.cache/actcache.
|
# If it's empty, the cache data will be stored in $HOME/.cache/actcache.
|
||||||
dir: ""
|
dir: ""
|
||||||
# The host of the cache server.
|
# The host of the cache server.
|
||||||
# It's not for the address to listen, but the address to connect from job containers.
|
# It's not for the address to listen, but the address to connect from job containers.
|
||||||
# So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
|
# So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
|
||||||
host: ""
|
host: "IP"
|
||||||
# The port of the cache server.
|
# The port of the cache server.
|
||||||
# 0 means to use a random available port.
|
# 0 means to use a random available port.
|
||||||
port: 0
|
port: 0
|
||||||
@@ -99,6 +108,10 @@ container:
|
|||||||
force_pull: true
|
force_pull: true
|
||||||
# Rebuild docker image(s) even if already present
|
# Rebuild docker image(s) even if already present
|
||||||
force_rebuild: false
|
force_rebuild: false
|
||||||
|
# Always require a reachable docker daemon, even if not required by act_runner
|
||||||
|
require_docker: false
|
||||||
|
# Timeout to wait for the docker daemon to be reachable, if docker is required by require_docker or act_runner
|
||||||
|
docker_timeout: 0s
|
||||||
|
|
||||||
host:
|
host:
|
||||||
# The parent directory of a job's working directory.
|
# The parent directory of a job's working directory.
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
services:
|
|
||||||
gitea_runner1:
|
|
||||||
container_name: gitea_runner1
|
|
||||||
image: docker.io/gitea/act_runner:0.3.0@sha256:8368754bb612a1deb07ed604e3b955338aefc01576d4d0d92e8dd82f29250fcd
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
CONFIG_FILE: /config.yml
|
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME1}"
|
|
||||||
volumes:
|
|
||||||
- ./config.yml:/config.yml
|
|
||||||
- ./data1:/data
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
|
|
||||||
gitea_runner2:
|
|
||||||
container_name: gitea_runner2
|
|
||||||
image: docker.io/gitea/act_runner:0.3.0@sha256:8368754bb612a1deb07ed604e3b955338aefc01576d4d0d92e8dd82f29250fcd
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
CONFIG_FILE: /config.yml
|
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME2}"
|
|
||||||
volumes:
|
|
||||||
- ./config.yml:/config.yml
|
|
||||||
- ./data2:/data
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
|
|
||||||
gitea_runner3:
|
|
||||||
container_name: gitea_runner3
|
|
||||||
image: docker.io/gitea/act_runner:0.3.0@sha256:8368754bb612a1deb07ed604e3b955338aefc01576d4d0d92e8dd82f29250fcd
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
CONFIG_FILE: /config.yml
|
|
||||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
|
||||||
GITEA_RUNNER_NAME: "${RUNNER_NAME3}"
|
|
||||||
volumes:
|
|
||||||
- ./config.yml:/config.yml
|
|
||||||
- ./data3:/data
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
hawser:
|
hawser:
|
||||||
container_name: hawserd
|
container_name: hawser
|
||||||
image: ghcr.io/finsys/hawser:0.2.29@sha256:b6f8eabb5e839a1950fae5302db5a96e98dbe63e928e8178c3ca682aed008e26
|
image: ghcr.io/finsys/hawser:0.2.29@sha256:b6f8eabb5e839a1950fae5302db5a96e98dbe63e928e8178c3ca682aed008e26
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
17
selfhst-icons/compose.yaml
Normal file
17
selfhst-icons/compose.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
selfhst-icons:
|
||||||
|
container_name: selfhst-icons
|
||||||
|
image: ghcr.io/selfhst/icons:3.2.0@sha256:3a6db28194ac905f9cfa8529b2abf7a3c21b688c5515b47c4a28ae49c16fa0fc
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- ICON_SOURCE=remote
|
||||||
|
- REMOTE_URL=${REMOTE_URL}
|
||||||
|
- STANDARD_ICON_FORMAT=${STANDARD_ICON_FORMAT}
|
||||||
|
ports:
|
||||||
|
- 4050:4050
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frontend:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user