-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 2.1 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
version: '3.8'
services:
nupack-server:
build: .
ports:
- "5003:5003"
- "5001:5001"
- "5002:5002"
- "5004:5004"
volumes:
- ./data:/app/data
environment:
- ASPNETCORE_ENVIRONMENT=Production
- Branding__ProductName=Nupack Server
- Branding__CompanyName=Your Organization
- Branding__RepositoryTitle=Nupack Private Repository
- Branding__NugetSourceName=Nupack Server
- Branding__NugetSourceUrl=http://localhost:5003/v3/index.json
- PackageStorage__Provider=${PACKAGE_STORAGE_PROVIDER:-FileSystem}
- PackageStorage__FileSystem__BasePath=/app/data/packages
- PackageStorage__S3__BucketName=${PACKAGE_STORAGE_S3_BUCKET:-nupack-packages}
- PackageStorage__S3__Region=${PACKAGE_STORAGE_S3_REGION:-us-east-1}
- PackageStorage__S3__ServiceUrl=${PACKAGE_STORAGE_S3_SERVICE_URL:-http://minio:9000}
- PackageStorage__S3__AccessKey=${PACKAGE_STORAGE_S3_ACCESS_KEY:-minioadmin}
- PackageStorage__S3__SecretKey=${PACKAGE_STORAGE_S3_SECRET_KEY:-minioadmin}
- PackageStorage__S3__ForcePathStyle=${PACKAGE_STORAGE_S3_FORCE_PATH_STYLE:-true}
- PackageStorage__S3__Prefix=${PACKAGE_STORAGE_S3_PREFIX:-packages/}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5003/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
minio:
image: minio/minio
profiles: ["s3"]
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=${PACKAGE_STORAGE_S3_ACCESS_KEY:-minioadmin}
- MINIO_ROOT_PASSWORD=${PACKAGE_STORAGE_S3_SECRET_KEY:-minioadmin}
volumes:
- ./data/minio:/data
minio-init:
image: minio/mc
profiles: ["s3"]
depends_on:
- minio
entrypoint: >
/bin/sh -c "
until mc alias set local http://minio:9000 ${PACKAGE_STORAGE_S3_ACCESS_KEY:-minioadmin} ${PACKAGE_STORAGE_S3_SECRET_KEY:-minioadmin}; do sleep 1; done;
mc mb -p local/${PACKAGE_STORAGE_S3_BUCKET:-nupack-packages};
exit 0;
"