-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.61 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
x-postgres-variables: &postgres-variables
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
x-minio-variables: &minio-variables
MINIO_SERVER_URL: "${MINIO_SERVER_URL}"
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
MINIO_END_POINT: "${MINIO_END_POINT}"
MINIO_PORT: "${MINIO_PORT}"
MINIO_BUCKET: "${MINIO_BUCKET}"
services:
postgres:
container_name: postgres-dev-label-editor
image: postgres:latest
restart: always
environment:
<<: *postgres-variables
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- './infrastructure/postgres/data:/var/lib/postgresql/data'
healthcheck:
interval: 10s
retries: 10
test: "pg_isready -U ${DB_USER} -d ${DB_NAME}"
timeout: 2s
minio:
container_name: minio-dev-label-editor
image: minio/minio
command: server /data --console-address ":9001"
environment:
<<: *minio-variables
ports:
- "9000:9000"
- "9001:9001"
volumes:
- './infrastructure/s3/data:/data'
minio-client:
container_name: minio-client-dev-label-editor
image: minio/mc
depends_on:
- minio
entrypoint: [ '/bin/sh', '-c' ]
command: >
mc alias set local http://minio:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} &&
mc mb --ignore-existing local/${MINIO_BUCKET} &&
mc anonymous set download local/${MINIO_BUCKET}
redis:
container_name: redis-dev-label-editor
image: redis:7
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]