-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (26 loc) · 839 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
version: '3.8'
services:
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data/minio:/data
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
command: server /data --console-address ":9001"
db:
image: postgres:latest # Use the latest official PostgreSQL image
container_name: my_postgres_db
environment:
POSTGRES_USER: admin # Set the database user
POSTGRES_PASSWORD: password # Set the database password
POSTGRES_DB: my_database # Set the name of the default database
ports:
- "5432:5432" # Expose PostgreSQL on port 5432
volumes:
- ./data/postgres:/var/lib/postgresql/data # Persistent storage
restart: always # Restart the container if it stops