diff --git a/.env b/.env new file mode 100644 index 0000000..34e4383 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +WEBHOOK_SECRET=1234 +NGINX_NETWORK=network-name +WEBHOOK_GIT_NETWORK=network-name \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index d12fc3a..46cf8a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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