forked from CODESPACE-CE-PROJECT/Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
47 lines (46 loc) · 961 Bytes
/
docker-compose.dev.yaml
File metadata and controls
47 lines (46 loc) · 961 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
networks:
backend:
external: true
frontend:
external: true
volumes:
db-data:
minio-data:
services:
db:
container_name: backend_db
image: postgres:latest
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
PGDATA: /var/lib/postgresql/data
ports:
- '5432:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U']
interval: 30s
timeout: 10s
retries: 5
networks:
- backend
- frontend
minio:
container_name: minio
image: minio/minio:RELEASE.2024-08-03T04-33-23Z-cpuv1
restart: unless-stopped
ports:
- 9000:9000
- 9001:9001
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=admin123
volumes:
- minio-data:/data
command: server --console-address ":9001" /data
networks:
- backend
- frontend