-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.azure.yml
More file actions
47 lines (44 loc) · 1.2 KB
/
docker-compose.azure.yml
File metadata and controls
47 lines (44 loc) · 1.2 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
version: '3'
services:
backend:
image: gosecureshare.azurecr.io/secure-share-backend:v1
restart: always
ports:
- "80:8080"
environment:
- MINIO_ENDPOINT=minio:9000
- REDIS_ADDR=redis:6379
- GIN_MODE=release
- MINIO_ACCESS_KEY=${MINIO_ROOT_USER}
- MINIO_SECRET_KEY=${MINIO_ROOT_PASSWORD}
- S3_BUCKET=${S3_BUCKET}
depends_on:
minio:
condition: service_healthy
redis:
condition: service_healthy
minio:
image: gosecureshare.azurecr.io/minio:latest
entrypoint: ["/bin/sh", "-c", "mkdir -p /data/${S3_BUCKET} && minio server /data --console-address 0.0.0.0:9001"]
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
S3_BUCKET: ${S3_BUCKET}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: gosecureshare.azurecr.io/redis:7-alpine
ports:
- "6379:6379"
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5