make volumes configurable
parent
2c0d8a8527
commit
19dafed214
3
.env
3
.env
|
|
@ -1,3 +1,4 @@
|
|||
WEBHOOK_GIT_DATA_PATH=/path/to/webhook-git/data
|
||||
WEBHOOK_SECRET=1234
|
||||
NGINX_NETWORK=network-name
|
||||
WEBHOOK_GIT_NETWORK=network-name
|
||||
WEBHOOK_GIT_NETWORK=network-name
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ services:
|
|||
image: nginx:latest
|
||||
volumes:
|
||||
- static-files:/usr/share/nginx/html
|
||||
- webhooks-git-ssh:/root/.ssh
|
||||
- webhooks-git-data:/etc/webhook/
|
||||
networks:
|
||||
- nginx-network
|
||||
|
||||
|
|
@ -15,14 +13,16 @@ services:
|
|||
context: ./webhooks-git
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- static-files:/etc/static-files
|
||||
- static-files:/html
|
||||
- type: bind
|
||||
source: ${WEBHOOK_GIT_DATA_PATH}
|
||||
target: /data
|
||||
networks:
|
||||
- webhooks-git-network
|
||||
|
||||
volumes:
|
||||
static-files:
|
||||
webhooks-git-ssh:
|
||||
webhooks-git-data:
|
||||
name: ${STATIC_FILES_VOLUME_NAME}
|
||||
networks:
|
||||
nginx-network:
|
||||
name: ${NGINX_NETWORK}
|
||||
|
|
|
|||
Loading…
Reference in New Issue