Repository navigation
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
89 lines (83 loc) · 2.29 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
89 lines (83 loc) · 2.29 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
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
# Isolated connected SDK qualification. The Server checkout is an exact public SHA.
services:
bootstrap:
build:
context: ../server
command: ["server-bootstrap"]
volumes: ["payloads:/app/storage/app"]
environment: &server-env
APP_ENV: testing
APP_KEY: "base64:dGVzdGluZy1rZXktMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMg=="
APP_DEBUG: "false"
DB_CONNECTION: mysql
DB_HOST: mysql
DB_DATABASE: durable_workflow
DB_USERNAME: workflow
DB_PASSWORD: workflow
REDIS_HOST: redis
QUEUE_CONNECTION: redis
CACHE_STORE: redis
WORKFLOW_SERVER_AUTH_DRIVER: token
WORKFLOW_SERVER_AUTH_TOKEN: test-token
DW_WORKFLOW_TASK_TIMEOUT: 10
DW_WORKER_PROTOCOL_VERSION: "1.20"
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
server:
build:
context: ../server
ports: ["8080"]
environment: *server-env
volumes: ["payloads:/app/storage/app"]
depends_on:
bootstrap:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 5s
timeout: 3s
retries: 10
worker:
build:
context: ../server
command: php artisan queue:work --sleep=1 --tries=3 --max-time=3600
environment: *server-env
volumes: ["payloads:/app/storage/app"]
depends_on:
server:
condition: service_healthy
repair:
build:
context: ../server
# Match the production scheduler's unscoped, unthrottled repair cadence.
command: sh -c 'while true; do php artisan workflow:v2:repair-pass --json; sleep 10; done'
environment: *server-env
volumes: ["payloads:/app/storage/app"]
depends_on:
server:
condition: service_healthy
mysql:
image: mysql:8.0
environment:
MYSQL_DATABASE: durable_workflow
MYSQL_USER: workflow
MYSQL_PASSWORD: workflow
MYSQL_ROOT_PASSWORD: root
tmpfs: [/var/lib/mysql]
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 3s
timeout: 2s
retries: 10
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 2s
retries: 5
volumes:
payloads: