-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.27 KB
/
docker-compose.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
services:
db:
image: postgres
container_name: pg-db
restart: unless-stopped
# set shared memory limit when using docker-compose
# or set shared memory limit when deploy via swarm stack
# volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 4294967296 # 4096*2^20 bytes = 4Gb
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
ports:
- "127.0.0.1:5432:5432"
minio:
image: quay.io/minio/minio
container_name: minio
restart: unless-stopped
ports:
- "0.0.0.0:9000:9000"
- "0.0.0.0:9001:9001"
volumes:
- ./data/minio-data:/data
environment:
MINIO_ROOT_USER: ${S3_USERNAME}
MINIO_ROOT_PASSWORD: ${S3_PASSWORD}
command: server /data --console-address ":9001"
# networks:
# miniostorage:
# aliases:
# - minio
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 180s
timeout: 20s
retries: 3
start_period: 60s
redis:
image: redis:latest
restart: unless-stopped
ports:
- '0.0.0.0:6379:6379'
command: redis-server --requirepass ${KV_PASSWORD}