-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.32 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
name: echo
networks:
echo:
volumes:
postgres:
minio:
services:
postgres:
image: postgres:15
container_name: echo_postgres
restart: unless-stopped
profiles: ["postgres"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
start_period: 30s
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_DATABASE=${POSTGRES_DATABASE:-echo}
- POSTGRES_USER=${POSTGRES_USER:-echo}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-echo}
networks:
- echo
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7
container_name: echo_redis
restart: unless-stopped
profiles: ["redis"]
environment:
- REDIS_USER=${REDIS_USER:-echo}
- REDIS_PASSWORD=${REDIS_PASSWORD:-echo}
networks:
- echo
ports:
- "6379:6379"
minio:
image: docker.io/bitnami/minio:2025
container_name: echo_minio
restart: unless-stopped
profiles: ["minio"]
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-echo}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-echo}
- MINIO_DEFAULT_BUCKETS=${MINIO_DEFAULT_BUCKETS:-echo}
networks:
- echo
volumes:
- minio:/data
ports:
- "9000:9000"
- "9001:9001"