feat: apps for apoc
This commit is contained in:
parent
41a9a425b7
commit
26590a38a7
8 changed files with 63 additions and 4 deletions
13
servers/apoc/docker-compose.d/custom/keycloak/Dockerfile
Normal file
13
servers/apoc/docker-compose.d/custom/keycloak/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM quay.io/keycloak/keycloak:latest as builder
|
||||
|
||||
ENV KC_DB=postgres
|
||||
|
||||
WORKDIR /opt/keycloak
|
||||
RUN /opt/keycloak/bin/kc.sh build
|
||||
|
||||
FROM quay.io/keycloak/keycloak:latest
|
||||
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
||||
|
||||
ENV KC_DB=postgres
|
||||
|
||||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
|
@ -7,7 +7,7 @@ server {
|
|||
real_ip_recursive on;
|
||||
|
||||
location / {
|
||||
proxy_pass http://keycloak;
|
||||
proxy_pass http://keycloak$request_uri;
|
||||
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
|
@ -17,4 +17,4 @@ server {
|
|||
proxy_set_header X-Forwarded-Port 443;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name ci.ixvd.net;
|
||||
|
||||
location / {
|
||||
proxy_pass http://woodpecker:8000$request_uri;
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@ services:
|
|||
container_name: mailserver
|
||||
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
|
||||
hostname: mail.ixvd.net
|
||||
env_file: ../../env/mailserver.env
|
||||
env_file: /etc/ixvd/secrets/env/mailserver.env
|
||||
# More information about the mail-server ports:
|
||||
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
|
||||
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
|
||||
|
|
|
@ -23,6 +23,7 @@ services:
|
|||
|
||||
kcdb:
|
||||
image: postgres:16
|
||||
privileged: true
|
||||
environment:
|
||||
POSTGRES_USER: keycloak
|
||||
POSTGRES_PASSWORD: keycloak
|
||||
|
|
34
servers/apoc/docker-compose.d/docker-compose.woodpecker.yml
Normal file
34
servers/apoc/docker-compose.d/docker-compose.woodpecker.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
version: '2.2'
|
||||
services:
|
||||
woodpecker:
|
||||
image: woodpeckerci/woodpecker-server:latest
|
||||
env_file:
|
||||
- /etc/ixvd/secrets/env/woodpecker/server.env
|
||||
- /etc/ixvd/secrets/env/woodpecker/agent.env
|
||||
environment:
|
||||
WOODPECKER_OPEN: 'true'
|
||||
WOODPECKER_HOST: https://ci.ixvd.net
|
||||
WOODPECKER_ADMIN: raine
|
||||
WOODPECKER_GITEA: 'true'
|
||||
WOODPECKER_GITEA_URL: https://git.ixvd.net
|
||||
volumes:
|
||||
- /srv/woodpecker/data:/var/lib/woodpecker
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
|
||||
woodpecker-agent:
|
||||
image: woodpeckerci/woodpecker-agent
|
||||
command: agent
|
||||
depends_on:
|
||||
- woodpecker
|
||||
env_file:
|
||||
- /etc/ixvd/secrets/env/woodpecker/agent.env
|
||||
environment:
|
||||
WOODPECKER_SERVER: woodpecker-server:9000
|
||||
WOODPECKER_MAX_WORKFLOWS: 10
|
||||
volumes:
|
||||
- /srv/woodpecker/other/runner:/etc/woodpecker
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
networks:
|
||||
- internal
|
|
@ -7,7 +7,7 @@ services:
|
|||
build: custom/nginx
|
||||
environment:
|
||||
CERTBOT_EMAIL: "webmaster@ixvd.net"
|
||||
CERTBOT_DOMAINS: "apoc.ixvd.net,mail.ixvd.net,git.ixvd.net,my.ixvd.net"
|
||||
# CERTBOT_DOMAINS: "apoc.ixvd.net,mail.ixvd.net,git.ixvd.net,my.ixvd.net,ci.ixvd.net"
|
||||
volumes:
|
||||
- /srv/certbot/data:/etc/letsencrypt
|
||||
- /srv/certbot/other/www:/var/www/certbot
|
||||
|
|
3
servers/apoc/setup.d/20-woodpecker.sh
Normal file
3
servers/apoc/setup.d/20-woodpecker.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p /srv/woodpecker/data
|
Loading…
Reference in a new issue