-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.31 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
version: "3.9"
services:
postgres:
image: postgres:17
container_name: postgres
restart: always
env_file:
- .env # Load your DB credentials (e.g., POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB)
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
minio:
image: minio/minio:latest
container_name: minio
restart: always
env_file:
- .env # Include MINIO credentials (e.g., MINIO_ROOT_USER, MINIO_ROOT_PASSWORD)
volumes:
- minio_data:/data
ports:
- "9000:9000" # MinIO service port
- "9001:9001" # MinIO Console port
command: server /data --console-address ":9001"
y-sweet-auth:
image: bunnybunbun37204/y-sweet-auth # Your Docker image
container_name: y-sweet-auth
restart: always
ports:
- "4001:4001" # Expose the container's 4001 port to the host
depends_on:
- postgres # Make sure postgres is available before starting the service
- redis # Ensure redis is available before starting the service
- minio # Ensure minio is available before starting the service
volumes:
postgres_data:
redis_data:
minio_data: