made network configurable

main
Andre Challier 2024-03-27 13:58:38 +01:00
parent 585abfc6ef
commit 8a383308da
2 changed files with 14 additions and 0 deletions

3
.env Normal file
View File

@ -0,0 +1,3 @@
WEBHOOK_SECRET=1234
NGINX_NETWORK=network-name
WEBHOOK_GIT_NETWORK=network-name

View File

@ -7,6 +7,8 @@ services:
- static-files:/usr/share/nginx/html
- webhooks-git-ssh:/root/.ssh
- webhooks-git-data:/etc/webhook/
networks:
- nginx-network
webhooks-git:
build:
@ -14,9 +16,18 @@ services:
dockerfile: Dockerfile
volumes:
- static-files:/etc/static-files
networks:
- webhooks-git-network
volumes:
static-files:
webhooks-git-ssh:
webhooks-git-data:
network:
nginx-network:
name: ${NGINX_NETWORK}
external: true
webhooks-git-network:
name: ${WEBHOOKS_GIT_NETWORK}
external: true