-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml.template
58 lines (55 loc) · 2.04 KB
/
docker-compose.yaml.template
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
version: '3.9'
name: {project-name}
services:
{project-name}-registry-ui:
image: joxit/docker-registry-ui:main
restart: always
ports:
- {containers-ui-port}:80
environment:
- SINGLE_REGISTRY=true
- REGISTRY_TITLE=Docker Registry UI
- DELETE_IMAGES=true
- SHOW_CONTENT_DIGEST=true
- NGINX_PROXY_PASS_URL=http://{project-name}-registry-server:5000
- SHOW_CATALOG_NB_TAGS=true
- CATALOG_MIN_BRANCHES=1
- CATALOG_MAX_BRANCHES=1
- TAGLIST_PAGE_SIZE=100
- REGISTRY_SECURED=false
- CATALOG_ELEMENTS_LIMIT=1000
container_name: {project-name}-registry-ui
{project-name}-registry-server:
image: registry:2.8.2
restart: always
ports:
- {containers-registry-port}:5000
environment:
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: '[http://registry.example.com]'
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]'
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]'
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]'
REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers: '[Docker-Content-Digest]'
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
volumes:
- ./data/registry:/var/lib/registry
container_name: {project-name}-registry
{project-name}-nuget-server:
image: loicsharma/baget:latest
restart: always
ports:
- {packages-port}:80
environment:
# The following config is the API Key used to publish packages.
# You should change this to a secret value to secure your server.
# NUGET-SERVER-API-KEY
- ApiKey=8B516EDB-7523-476E-AF43-79CCA054CE9F
- Storage__Type=FileSystem
- Storage__Path=/var/baget/packages
- Database__Type=Sqlite
- Database__ConnectionString=Data Source=/var/baget/baget.db
- Search__Type=Database
volumes:
- ./data/baget:/var/baget
- ./data/baget/data-protection-keys:/root/.aspnet/DataProtection-Keys
container_name: {project-name}-nuget-ui