-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (53 loc) · 1.34 KB
/
docker-compose.yaml
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
x-postgres-variables: &postgres-variables
POSTGRES_DB: 'bt-parts'
POSTGRES_USER: 'bt-parts'
POSTGRES_PASSWORD: '12345678'
x-minio-variables: &minio-variables
MINIO_ROOT_USER: 'admin'
MINIO_ROOT_PASSWORD: '12345678'
MINIO_END_POINT: 'localhost'
MINIO_PORT: '9000'
MINIO_BUCKET: 'storage'
services:
postgres:
container_name: postgres-bt-parts
image: postgres:latest
restart: always
environment:
<<: *postgres-variables
ports:
- '5432:5432'
healthcheck:
interval: 10s
retries: 10
test: 'pg_isready -U postges -d parts'
timeout: 2s
minio:
container_name: minio-bt-parts
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
<<: *minio-variables
ports:
- '9000:9000'
- '9001:9001'
minio-client:
container_name: minio-client-bt-parts
image: minio/mc:latest
entrypoint: ['/bin/sh', '-c']
command:
- |
mc alias set local http://minio:9000 admin 12345678
mc admin update local
mc mb --ignore-existing local/storage
mc anonymous set download local/storage
depends_on:
- minio
redis:
container_name: redis-bt-parts
image: redis:latest
restart: unless-stopped
ports:
- '6379:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']