-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.58 KB
/
docker-compose.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
# Author: Alejandro M. BERNARDIS
# Email: alejandro.bernardis at gmail.com
# Created: 2019/11/11 10:49
version: '3.4'
x-restart: &restart
restart: unless-stopped
services:
master:
<<: *restart
image: registry:latest
ports:
- ${PORT}:5000
environment:
REGISTRY_LOG_LEVEL: warn
# REGISTRY_HTTP_HOST: http://${HOST}:${PORT}
REGISTRY_REDIS_ADDR: ${MASTER_CACHE_LOCAL}:6379
REGISTRY_REDIS_PASSWORD: ${REDIS_PASSWORD}
volumes:
- ${BASEPATH}/auth:/auth:ro
- ${BASEPATH}/data:/var/lib/registry:rw
- ${BASEPATH}/config.yml:/etc/docker/registry/config.yml:rw
networks:
registry:
aliases:
- ${MASTER_LOCAL}
depends_on:
- master_cache
master_cache:
<<: *restart
image: redis:latest
deploy:
resources:
limits:
cpus: '0.50'
memory: 500M
reservations:
memory: 256M
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
volumes:
- ${BASEPATH}/cache:/data:rw
networks:
registry:
aliases:
- ${MASTER_CACHE_LOCAL}
command: redis-server --loglevel warning
master_web:
<<: *restart
image: registry-browser:latest
ports:
- ${PORT_UI}:8080
environment:
DOCKER_REGISTRY_URL: http://${MASTER_LOCAL}:${PORT}
PUBLIC_REGISTRY_URL: ${HOST}:${PORT}
NO_SSL_VERIFICATION: 'true'
ENABLE_DELETE_IMAGES: 'true'
networks:
registry:
aliases:
- ${MASTER_WEB_LOCAL}
depends_on:
- master
networks:
registry:
external:
name: registry