programm-webhook/docker-compose.yml

34 lines
621 B
YAML

version: '3.8'
services:
nginx:
image: nginx:latest
volumes:
- static-files:/usr/share/nginx/html
networks:
- nginx-network
webhooks-git:
build:
context: ./webhooks-git
dockerfile: Dockerfile
volumes:
- static-files:/html
- type: bind
source: ${WEBHOOK_GIT_DATA_PATH}
target: /data
networks:
- webhooks-git-network
volumes:
static-files:
name: ${STATIC_FILES_VOLUME_NAME}
networks:
nginx-network:
name: ${NGINX_NETWORK}
external: true
webhooks-git-network:
name: ${WEBHOOK_GIT_NETWORK}
external: true