-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) 路 1.76 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (61 loc) 路 1.76 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: oss_igaming
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 10
# Durable inter-module broker (MESSAGE_BROKER overlay). OPT-IN via the `broker`
# profile for local broker testing: `docker compose --profile broker up`. The
# platform is headless - it ships no runnable API; a consumer app binds the
# broker by setting AMQP_URL and adding its own overlay. Management UI on
# :15672 (guest/guest). See ADR-0016.
rabbitmq:
# profiles: ['broker']
image: rabbitmq:3-management
ports:
- '5672:5672'
- '15672:15672'
healthcheck:
test: ['CMD', 'rabbitmq-diagnostics', '-q', 'ping']
interval: 10s
timeout: 5s
retries: 10
# Distributed CACHE + RATE_LIMITER + MESSAGE_BROKER + JOB_QUEUE reference backend.
# Starts by default (`docker compose up -d`) because the real-infra kernel tests run
# the actual Redis adapters against it. A consumer app binds it by setting REDIS_URL
# (redis://localhost:6379) - createApp auto-binds the Redis adapters, no code change.
# See ADR-0028.
redis:
image: redis:7-alpine
command:
[
'redis-server',
'--maxmemory-policy',
'noeviction',
'--appendonly',
'yes',
'--appendfsync',
'everysec',
]
ports:
- '6379:6379'
volumes:
- redis_data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres_data:
redis_data: