Add webhook testing and Docker compose cleanup
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
*.yml
|
*.yml
|
||||||
*.toml
|
*.toml
|
||||||
|
test
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
docker-certs:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
cursorius:
|
|
||||||
|
|
||||||
services:
|
|
||||||
cursorius:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./Dockerfile
|
|
||||||
ports:
|
|
||||||
- "127.0.0.1:45420:45420"
|
|
||||||
environment:
|
|
||||||
- "DOCKER_HOST=tcp://dind:2376"
|
|
||||||
- "DOCKER_CERT_PATH=/certs/client"
|
|
||||||
networks:
|
|
||||||
- cursorius
|
|
||||||
volumes:
|
|
||||||
- "./server-dind.toml:/root/.config/cursorius/server.toml"
|
|
||||||
- docker-certs:/certs/client:ro
|
|
||||||
|
|
||||||
|
|
||||||
dind:
|
|
||||||
image: docker:dind
|
|
||||||
privileged: true
|
|
||||||
networks:
|
|
||||||
- cursorius
|
|
||||||
environment:
|
|
||||||
- "DOCKER_TLS_CERTDIR=/certs"
|
|
||||||
volumes:
|
|
||||||
- docker-certs:/certs/client
|
|
||||||
@@ -8,5 +8,4 @@ services:
|
|||||||
- "0.0.0.0:45420:45420"
|
- "0.0.0.0:45420:45420"
|
||||||
volumes:
|
volumes:
|
||||||
- "./server.toml:/root/.config/cursorius/server.toml"
|
- "./server.toml:/root/.config/cursorius/server.toml"
|
||||||
- "/home/robby/development/restitux/ohea/cursorius/test/server/job:/job"
|
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
version: "3.3"
|
||||||
|
services:
|
||||||
|
cursorius-server:
|
||||||
|
build:
|
||||||
|
context: ..
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
ports:
|
||||||
|
- "0.0.0.0:45420:45420"
|
||||||
|
volumes:
|
||||||
|
- "../server.toml:/root/.config/cursorius/server.toml"
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:latest
|
||||||
|
environment:
|
||||||
|
- GITEA__webhook__ALLOWED_HOST_LIST=cursorius-server, external
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:2222:22"
|
||||||
|
- "127.0.0.1:3000:3000"
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- gitea-data:/data
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
gitea-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gitea:
|
||||||
|
external: false
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
version: "3.3"
|
||||||
|
services:
|
||||||
|
cursorius-server:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
ports:
|
||||||
|
- "0.0.0.0:45420:45420"
|
||||||
|
volumes:
|
||||||
|
- "./server.toml:/root/.config/cursorius/server.toml"
|
||||||
|
- "/home/robby/development/restitux/ohea/cursorius/test/server/job:/job"
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
Reference in New Issue
Block a user