Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (82 loc) · 1.86 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (82 loc) · 1.86 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
name: playful-programming-hoof
services:
pgsql:
image: postgres:16.10-alpine3.22
env_file:
- .env
volumes:
- pgsql_storage:/var/lib/postgresql/data
- pgsql_backups:/backups
healthcheck:
test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
start_interval: 500ms
networks: [shared]
ports:
- "5432:5432"
redis:
image: redis:8.2.1-alpine3.22
volumes:
- redis_storage:/data
networks: [shared]
ports:
- "6379:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
start_interval: 500ms
rustfs:
image: rustfs/rustfs
networks: [shared]
ports:
- "9000:9000" # API Port
- "9001:9001" # Web UI Port
volumes:
- rustfs_storage:/data
environment:
RUSTFS_ACCESS_KEY: ${S3_KEY_ID}
RUSTFS_SECRET_KEY: ${S3_KEY_SECRET}
healthcheck:
test: [
"CMD",
"sh",
"-ec",
"curl -f \"http://127.0.0.1:9000/health\" && \
curl -f \"http://127.0.0.1:9001/rustfs/console/health\"",
]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
start_interval: 500ms
proxy:
build:
context: .
target: e2e-proxy
image: playful-programming-hoof-e2e-proxy:latest
environment:
MOCK_PROXY_PORT: 3999
volumes:
- ./e2e/mocks/src:/var/app/e2e/mocks/src:ro
networks: [shared]
healthcheck:
test: netstat -tln | grep :3999
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
start_interval: 100ms
volumes:
pgsql_storage: {}
pgsql_backups: {}
redis_storage: {}
rustfs_storage: {}
networks:
shared:
name: hoof_shared_network