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
|
- static-files:/usr/share/nginx/html
|
||||||
- webhooks-git-ssh:/root/.ssh
|
- webhooks-git-ssh:/root/.ssh
|
||||||
- webhooks-git-data:/etc/webhook/
|
- webhooks-git-data:/etc/webhook/
|
||||||
|
networks:
|
||||||
|
- nginx-network
|
||||||
|
|
||||||
webhooks-git:
|
webhooks-git:
|
||||||
build:
|
build:
|
||||||
|
|
@ -14,9 +16,18 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- static-files:/etc/static-files
|
- static-files:/etc/static-files
|
||||||
|
networks:
|
||||||
|
- webhooks-git-network
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
static-files:
|
static-files:
|
||||||
webhooks-git-ssh:
|
webhooks-git-ssh:
|
||||||
webhooks-git-data:
|
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