-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
68 lines (63 loc) · 1.63 KB
/
Copy pathcompose.yaml
File metadata and controls
68 lines (63 loc) · 1.63 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
62
63
64
65
66
67
68
# Development-only Docker Compose stack for local dependencies.
# Credentials and ports are designed for local development and MUST NOT be used in production.
name: pia-dev
services:
postgres:
image: pgvector/pgvector:pg17
container_name: pia-postgres
environment:
POSTGRES_USER: pia
POSTGRES_PASSWORD: pia-dev
POSTGRES_DB: pia
ports:
- '127.0.0.1:5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
- ./infra/docker/postgres/init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U pia -d pia']
interval: 3s
timeout: 3s
retries: 10
start_period: 5s
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: pia-redis
ports:
- '127.0.0.1:6379:6379'
volumes:
- redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 3s
timeout: 3s
retries: 10
start_period: 5s
restart: unless-stopped
minio:
image: minio/minio:latest
container_name: pia-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- '0.0.0.0:9000:9000'
- '0.0.0.0:9001:9001'
volumes:
- minio-data:/data
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
restart: unless-stopped
volumes:
postgres-data:
name: pia-postgres-data
redis-data:
name: pia-redis-data
minio-data:
name: pia-minio-data