added composer caddy

This commit is contained in:
Henrik Mertens 2023-02-24 08:30:00 +01:00
parent 9d571bd1d7
commit 0bd804c45f
11 changed files with 93 additions and 8 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
config/
.env
data/

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "kontify/kontify"]
path = kontify/kontify
url = https://github.com/jahir/kontify.git

View file

@ -10,5 +10,5 @@ pipeline:
from_secret: docker_password
username:
from_secret: docker_username
dockerfile: ./kontify/Dockerfile
context: ./kontify
dockerfile: ./Container/kontify/Dockerfile
context: ./Container//kontify

7
Composer/caddy/README.MD Normal file
View file

@ -0,0 +1,7 @@
# Automatischer Caddy Proxy Server
Dieser Server erstellt automatisch Proxy Regeln für Docker Container.
Vor dem Start muss der Befehl
docker network create caddy
ausgeführt werden.

View file

@ -0,0 +1,29 @@
version: "3.7"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
restart: unless-stopped
whoami:
image: containous/whoami
networks:
- caddy
labels:
caddy: whoami.localhost
caddy.reverse_proxy: "{{upstreams 80}}"
networks:
caddy:
external: true
volumes:
caddy_data: {}

View file

@ -0,0 +1,48 @@
version: '3'
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:next
#ports:
# - 8000:8000
volumes:
- woodpecker-server-data:/var/lib/woodpecker/
environment:
- WOODPECKER_LOG_LEVEL=info
- WOODPECKER_OPEN=true
- WOODPECKER_HOST=${WOODPECKER_HOST}
- WOODPECKER_SECRET=${WOODPECKER_AGENT_SECRET}
- WOODPECKER_GITEA=true
- WOODPECKER_GITEA_URL=${WOODPECKER_GITEA_URL}
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
- WOODPECKER_GITEA_SECRET=${WOODPECKER_GITEA_SECRET}
networks:
- caddy
- woodpecker
labels:
caddy: woodpecker.localhost
caddy.reverse_proxy: "{{upstreams 8000}}"
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:next
#command: agent
restart: always
depends_on:
- woodpecker-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- woodpecker
environment:
# - WOODPECKER_LOG_LEVEL=debug
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_SECRET=${WOODPECKER_AGENT_SECRET}
volumes:
woodpecker-server-data:
networks:
woodpecker:
internal: true
caddy:
external: true

View file

@ -1,4 +1,4 @@
# Container
# Container
[![status-badge](http://bodo.mertens.digital/api/badges/heri410/Container/status.svg)](http://bodo.mertens.digital/heri410/Container)
Collection of Containers to Build
Collection of Containers and Docker Compose Files

1
kontify/.gitignore vendored
View file

@ -1 +0,0 @@
config/