-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1000 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1000 Bytes
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
services:
db:
image: postgres:16-alpine
container_name: rustok_db
environment:
POSTGRES_DB: rustok_dev
POSTGRES_USER: rustok
POSTGRES_PASSWORD: rustok
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rustok -d rustok_dev"]
interval: 5s
timeout: 5s
retries: 5
iggy:
image: apache/iggy:0.7.0
container_name: rustok_iggy
environment:
- IGGY_ROOT_USERNAME=iggy
- IGGY_ROOT_PASSWORD=iggy
- IGGY_TCP_ENABLED=true
- IGGY_TCP_ADDRESS=0.0.0.0:8090
- IGGY_HTTP_ENABLED=false
- IGGY_QUIC_ENABLED=false
ports:
- "8090:8090"
volumes:
- iggy_data:/iggy/local_data
healthcheck:
test: ["CMD-SHELL", "iggy --tcp-server-address localhost:8090 --username iggy --password iggy ping || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
iggy_data: