-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
67 lines (52 loc) · 1.37 KB
/
compose.dev.yaml
File metadata and controls
67 lines (52 loc) · 1.37 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
# Use postgres/example user/password credentials
version: '3.9'
services:
db:
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d/
ports:
- 127.0.0.1:${POSTGRES_PORT}:5432
# Redis
cache:
image: redis-stack
restart: always
ports:
- 127.0.0.1:${REDIS_PORT}:6379
- 127.0.0.1:${REDIS_INSIGHT_PORT}:8001
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_SECRET}
volumes:
- cache:/data
# Meilisearch
search:
image: getmeili/meilisearch
restart: always
ports:
- 127.0.0.1:${MEILISEARCH_PORT}:7700
volumes:
- ./meili_data:/meili_data
environment:
MEILI_MASTER_KEY: ${MEILISEARCH_MASTER_KEY}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7700"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
cache:
driver: local