-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
58 lines (54 loc) · 1.22 KB
/
compose.yaml
File metadata and controls
58 lines (54 loc) · 1.22 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
services:
postgres:
container_name: codzilla-postgres
image: postgres:15
ports:
- "5433:5432"
environment:
POSTGRES_DB: testingdb
POSTGRES_USER: myuser
POSTGRES_PASSWORD: secret
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U myuser -d testingdb"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7.2-alpine
container_name: codzilla-redis
restart: always
ports:
- "6379:6379"
command: >
redis-server
--requirepass redis-password
--maxmemory 512mb
--maxmemory-policy allkeys-lru
--appendonly yes
volumes:
- redis_data:/data
redis-insight:
image: redis/redisinsight:latest
container_name: codzilla-redis-insight
restart: always
environment:
- RDI_PORT=5540
ports:
- "8001:5540"
depends_on:
- redis
minio:
image: minio/minio
container_name: codzilla-minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minio-user
MINIO_ROOT_PASSWORD: minio-password
command: server /data --console-address ":9001"
volumes:
redis_data:
postgres_data: