-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (100 loc) · 2.73 KB
/
docker-compose.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
redis:
image: redis:7.0.4-alpine
container_name: redis
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
restart: always
filepoint:
image: "filepoint"
container_name: filepoint
restart: unless-stopped
depends_on:
localstack:
condition: service_healthy
redis:
condition: service_healthy
# kafka:
# condition: service_healthy
ports:
- "${FILEPOINT_ADDR}:${FILEPOINT_ADDR}"
build:
context: .
dockerfile: ./build/package/docker/Dockerfile
args:
- BINARY_NAME=filepoint
- CONFIG_FILE=./config/config.yaml
- REPOSITORY=${REPOSITORY}
volumes:
- ./config:/app/config
filepoint-webhooks-sender:
image: "filepoint-webhooks-sender"
container_name: filepoint-webhooks-sender
restart: unless-stopped
depends_on:
localstack:
condition: service_healthy
redis:
condition: service_healthy
# kafka:
# condition: service_healthy
build:
context: .
dockerfile: ./build/package/docker/Dockerfile
args:
- BINARY_NAME=filepoint-webhooks-sender
- CONFIG_FILE=./config/config.yaml
- REPOSITORY=${REPOSITORY}
volumes:
- ./config:/app/config
localstack:
container_name: localstack
image: localstack/localstack
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 3s
timeout: 10s
environment:
- AWS_DEFAULT_REGION=us-east-1
- LOCALSTACK_HOST=localhost
- DOCKER_HOST=unix:///var/run/docker.sock
- SERVICES=dynamodb,s3,sns,sqs
ports:
- "4566:4566"
volumes:
- "./scripts/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh"
laravel-echo-server:
image: "webhooksite/laravel-echo-server"
environment:
- LARAVEL_ECHO_SERVER_AUTH_HOST=http://localhost
- LARAVEL_ECHO_SERVER_HOST=0.0.0.0
- LARAVEL_ECHO_SERVER_PORT=6001
- ECHO_REDIS_PORT=6379
- ECHO_REDIS_HOSTNAME=redis
- ECHO_PROTOCOL=http
- ECHO_ALLOW_CORS=true
- ECHO_ALLOW_ORIGIN=*
- ECHO_ALLOW_METHODS=*
- ECHO_ALLOW_HEADERS=*
webhook_site:
container_name: webhook_site
image: "webhooksite/webhook.site"
command: php artisan queue:work --daemon --tries=3 --timeout=10
ports:
- "8084:80"
environment:
- APP_ENV=dev
- APP_DEBUG=true
- APP_URL=http://localhost:8084
- APP_LOG=errorlog
- DB_CONNECTION=sqlite
- REDIS_HOST=redis
- BROADCAST_DRIVER=redis
- CACHE_DRIVER=redis
- QUEUE_DRIVER=redis
- ECHO_HOST_MODE=path
depends_on:
- redis
- laravel-echo-server