-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
hookdeck:
image: hookdeck/hookdeck-cli:latest
container_name: hookdeck
entrypoint: ["/bin/sh","-c"]
env_file:
- path: ./.env
required: true
command:
- |
/bin/hookdeck version
/bin/hookdeck ci --api-key $HOOKDECK_API_KEY --name "DOCKER_CI"
echo "Installing curl dependency. This could be done within a Dockerfile."
apk add curl
echo "Ensuring connection exists for source $HOOKDECK_SOURCE_NAME"
curl --location --request PUT 'https://api.hookdeck.com/2024-03-01/connections' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $HOOKDECK_API_KEY' \
--data '{
"name": "${HOOKDECK_SOURCE_NAME}_to_CLI",
"source": {
"name": "$HOOKDECK_SOURCE_NAME",
"allowed_http_methods": [
"GET",
"PUT",
"PATCH",
"DELETE",
"POST"
]
},
"destination": {
"name": "CLI",
"cli_path": "/"
}
}'
/bin/hookdeck listen http://host.docker.internal:$APP_SERVICE_PORT $HOOKDECK_SOURCE_NAME