gitea action runner

This commit is contained in:
msnie
2024-08-08 08:23:20 +02:00
parent 370779b31d
commit 0231b67486
3 changed files with 60 additions and 45 deletions
+6 -4
View File
@@ -2,9 +2,9 @@ version: "3"
services: services:
ghost: ghost:
image: ghost:latest image: ghost:latest
build: # build:
context: ./nginx # context: ./nginx
dockerfile: Dockerfile # dockerfile: Dockerfile
volumes: volumes:
- /srv/ghost:/var/lib/ghost/content - /srv/ghost:/var/lib/ghost/content
environment: environment:
@@ -16,9 +16,11 @@ services:
# database__connection__user: root # database__connection__user: root
# database__connection__password: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ # database__connection__password: RJbhYNaCEB3fu8cbtkteetxTR5LtZjnPsqATGgPZ
# database__connection__database: ghost # database__connection__database: ghost
volumes:
- /home/ghost/content:/var/lib/ghost/content/data
networks: networks:
- traefik - traefik
- default # - default
# depends_on: # depends_on:
# - ghost_db # - ghost_db
restart: unless-stopped restart: unless-stopped
+41 -41
View File
@@ -15,52 +15,52 @@
# } # }
server { # server {
listen 80; # listen 80;
listen [::]:80; # listen [::]:80;
# listen 443 ssl http2 default_server; # # listen 443 ssl http2 default_server;
# listen [::]:443 http2 ssl; # # listen [::]:443 http2 ssl;
# server_name read.knast.cc; # # server_name read.knast.cc;
# ssl on; # # ssl on;
# ssl_certificate /etc/nginx/yourhost.xyz.crt; # # ssl_certificate /etc/nginx/yourhost.xyz.crt;
# ssl_certificate_key /etc/nginx/yourhost.xyz.key; # # ssl_certificate_key /etc/nginx/yourhost.xyz.key;
# ssl_protocols TLSv1.2; # # ssl_protocols TLSv1.2;
location / { # location / {
proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; # proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; # proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 90; # proxy_connect_timeout 90;
proxy_send_timeout 90; # proxy_send_timeout 90;
proxy_read_timeout 90; # proxy_read_timeout 90;
proxy_buffering off; # proxy_buffering off;
proxy_cache_valid 200 30m; # proxy_cache_valid 200 30m;
proxy_cache_valid 404 1m; # proxy_cache_valid 404 1m;
client_max_body_size 10m; # client_max_body_size 10m;
client_body_buffer_size 128k; # client_body_buffer_size 128k;
proxy_pass http://ghost:2368; # proxy_pass http://ghost:2368;
} # }
# Cache Ghost Images # # Cache Ghost Images
location ~ "/assets/images/(.*)-([a-z0-9]{10})\.(?:png|jpe?g|tiff)(.*)$" { # location ~ "/assets/images/(.*)-([a-z0-9]{10})\.(?:png|jpe?g|tiff)(.*)$" {
expires max; # expires max;
add_header Cache-Control public; # add_header Cache-Control public;
add_header Vary Accept; # add_header Vary Accept;
proxy_pass http://ghost:2368/$uri$webp_suffix; # proxy_pass http://ghost:2368/$uri$webp_suffix;
access_log off; # access_log off;
} # }
# Cache Ghost css and js # # Cache Ghost css and js
location ~* \.(?:css|js) { # location ~* \.(?:css|js) {
expires max; # expires max;
add_header Cache-Control public; # add_header Cache-Control public;
proxy_pass http://ghost:2368/$uri; # proxy_pass http://ghost:2368/$uri;
access_log off; # access_log off;
} # }
} # }
+13
View File
@@ -54,6 +54,19 @@ services:
options: options:
max-size: "1m" max-size: "1m"
runner:
image: gitea/act_runner:latest
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "https://gitea.knast.cc"
GITEA_RUNNER_REGISTRATION_TOKEN: "F27ZMdzwY0wunOmmkK9O4kwZFGeyORykFHZtJA9F"
GITEA_RUNNER_NAME: "BOB_THE_BUILDER"
GITEA_RUNNER_LABELS: "ALL"
volumes:
- /srv/gitea_runner/config/config.yaml:/config.yaml
- /srv/gitea_runner/data:/data
- /var/run/docker.sock:/var/run/docker.sock
networks: networks:
traefik: traefik:
external: true external: true