Add webhook testing and Docker compose cleanup

This commit is contained in:
2022-12-23 20:16:24 -07:00
parent 9cb4ca687e
commit 46245b73c9
5 changed files with 45 additions and 35 deletions
+1
View File
@@ -1,2 +1,3 @@
*.yml
*.toml
test
-34
View File
@@ -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
-1
View File
@@ -8,5 +8,4 @@ services:
- "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"
+32
View File
@@ -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
+12
View File
@@ -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"