-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 1.01 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
# Ziggurat — Local backend provisioning for functional tests
#
# Usage:
# docker compose --profile redis up -d # Start only Redis
# docker compose --profile redis down # Stop Redis
# docker compose up -d # Start all backends (none by default)
#
# Adding a new backend:
# 1. Add a service definition below with `profiles: [backend-name]`
# 2. Expose the default port and add a health check
# 3. Add the corresponding env var to .env.example
# 4. Add a matrix entry to the `functional` job in .github/workflows/ci.yml
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
profiles:
- redis
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
memcached:
image: memcached:1-alpine
ports:
- "11211:11211"
profiles:
- memcached
healthcheck:
test: ["CMD-SHELL", "echo stats | nc localhost 11211 | grep -q pid"]
interval: 5s
timeout: 3s
retries: 5