-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dokploy.yml
More file actions
50 lines (47 loc) · 1.74 KB
/
Copy pathdocker-compose.dokploy.yml
File metadata and controls
50 lines (47 loc) · 1.74 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
services:
trupu:
# Use the published image from GitHub Packages
image: ghcr.io/nmerget/trupu:latest
# Or build from source:
# build:
# context: .
# dockerfile: packages/server/Dockerfile
environment:
PORT: '3000'
# TODO: Change to your owner/repo:workflow.yml
ALLOWED_PUBLISHERS: 'your-org/your-repo:publish.yml'
# TODO: Change to https://your-registry-domain.com
OIDC_AUDIENCE: 'https://registry.example.com'
networks:
- dokploy-network
labels:
- traefik.enable=true
- traefik.http.services.trupu-server.loadbalancer.server.port=3000
registry:
image: registry:2
ports:
- '127.0.0.1:6000:5000'
environment:
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
volumes:
- registry-data:/var/lib/registry
networks:
- dokploy-network
labels:
- traefik.enable=true
# TODO: Change registry.example.com to your registry domain
- traefik.http.routers.trupu-registry.rule=Host(`registry.example.com`)
- traefik.http.routers.trupu-registry.entrypoints=websecure
- traefik.http.routers.trupu-registry.tls=true
- traefik.http.routers.trupu-registry.tls.certresolver=letsencrypt
- traefik.http.routers.trupu-registry.middlewares=trupu-auth
- traefik.http.routers.trupu-registry.service=trupu-registry-svc
- traefik.http.services.trupu-registry-svc.loadbalancer.server.port=5000
# ForwardAuth middleware
- traefik.http.middlewares.trupu-auth.forwardauth.address=http://trupu:3000/auth
- traefik.http.middlewares.trupu-auth.forwardauth.authResponseHeaders=X-Trupu-Repository,X-Trupu-Workflow,X-Trupu-Ref,Www-Authenticate
volumes:
registry-data:
networks:
dokploy-network:
external: true