-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.41 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
services:
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
env_file:
- .env.docker
environment:
DOCKER_DB_HOST: postgres
DOCKER_DB_PORT: '5432'
MINIO_HEALTHCHECK_URL: http://minio:9000/minio/health/live
ports:
- '3000:3000'
restart: unless-stopped
postgres:
image: postgres:16-alpine
env_file:
- .env.docker
command:
- 'postgres'
- '-c'
- 'max_connections=200'
- '-c'
- 'shared_buffers=256MB'
- '-c'
- 'work_mem=16MB'
- '-c'
- 'effective_cache_size=1GB'
- '-c'
- 'maintenance_work_mem=128MB'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB']
interval: 5s
timeout: 5s
retries: 20
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
env_file:
- .env.docker
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 5s
timeout: 5s
retries: 20
ports:
- '127.0.0.1:9000:9000'
- '127.0.0.1:9001:9001'
volumes:
- minio-data:/data
restart: unless-stopped
volumes:
postgres-data:
minio-data: