-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.26 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
services:
clippy:
image: fascinated/clippy:latest
env_file: .env
ports:
- "3000:3000"
volumes:
- ${STORAGE_LOCAL_PATH:-./uploads}:/app/uploads
depends_on:
db:
condition: service_healthy
db:
image: postgres:17
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-clippy}
POSTGRES_USER: ${POSTGRES_USER:-clippy}
POSTGRES_DB: ${POSTGRES_DB:-clippy}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
#minio:
# image: minio/minio:latest
# environment:
# MINIO_ROOT_USER: ${MINIO_ROOT_USER:-clippysupersecretpassword}
# MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-clippysupersecretpassword}
# ports:
# - "${MINIO_API_PORT:-9000}:9000"
# - "${MINIO_CONSOLE_PORT:-9001}:9001" # MinIO console
# volumes:
# - minio_data:/data
# command: server /data --console-address ":9001"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
# interval: 10s
# timeout: 5s
# retries: 3
volumes:
postgres_data:
# minio_data: