-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose-local.yml
122 lines (116 loc) · 2.73 KB
/
docker-compose-local.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
x-build-args: &build-args
DOCKER_BUILDKIT: 1
GO_VERSION: 1.23
ALPINE_VERSION: latest
services:
db:
image: postgres:latest
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_DB: ${DB_NAME:-postgres}
POSTGRES_MULTIPLE_EXTENSIONS: pg_stat_statements
command:
- "postgres"
- "-c"
- "wal_level=logical"
- "-c"
- "shared_preload_libraries=pg_stat_statements"
- "-c"
- "pg_stat_statements.track=all"
- "-c"
- "max_replication_slots=1"
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 512M
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
meilisearch:
image: getmeili/meilisearch:v1.11.3
container_name: meilisearch
ports:
- "7700:7700"
environment:
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-masterKey}
- MEILI_NO_ANALYTICS=${MEILI_NO_ANALYTICS:-true}
- MEILI_DB_PATH=${MEILI_DB_PATH:-/data.ms}
- MEILI_ENV=${MEILI_ENV:-development}
restart: always
networks:
- app-network
volumes:
- meilisearch_data:/data.ms
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: set -o pipefail;curl -fsS http://localhost:7700/health | grep -q '{"status":"available"}'
retries: 3
timeout: 5s
redis:
image: redis/redis-stack:latest
container_name: redis
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- redis_data:/data
networks:
- app-network
deploy:
resources:
limits:
memory: 1G
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: quay.io/minio/minio
container_name: minio
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-minioadmin}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-minioadmin}
volumes:
- minio_data:/data
ports:
- 9000:9000 # API
- 9001:9001 # Console
restart: always
networks:
- app-network
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
pg_data: {}
redis_data: {}
minio_data: {}
meilisearch_data: {}
networks:
app-network:
name: app-network
external: true