made network configurable
parent
585abfc6ef
commit
8a383308da
|
|
@ -0,0 +1,3 @@
|
|||
WEBHOOK_SECRET=1234
|
||||
NGINX_NETWORK=network-name
|
||||
WEBHOOK_GIT_NETWORK=network-name
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue