-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 909 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 909 Bytes
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
version: '3'
services:
dockerauth:
image: cesanta/docker_auth:1
ports:
- "5001:5001"
environment:
BULLSEYE_WEB_URL: $BULLSEYE_WEB_URL
BULLSEYE_API_AUTH_TOKEN: $BULLSEYE_API_AUTH_TOKEN
volumes:
- ./config:/config:ro
- ./log:/logs
command: /config/registry_auth_config.yml
restart: always
depends_on:
- registry
registry:
restart: always
image: registry:2
ports:
- 5000:5000
environment:
REGISTRY_AUTH_TOKEN_REALM: https://$DOCKER_REGISTRY_AUTH_HOST/auth
REGISTRY_AUTH_TOKEN_ISSUER: "Auth Service"
REGISTRY_NOTIFICATIONS_ENDPOINTS: "- name: bullseye-runner\n url: $BULLSEYE_RUNNER_NOTIFICATION_URL\n timeout: 2000ms\n threshold: 5\n backoff: 1s"
volumes:
- ./data:/var/lib/registry
- ./config/certs:/certs:ro
- ./config/registry_config.yml:/etc/docker/registry/config.yml:ro