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
+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"