-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
149 lines (140 loc) · 3.53 KB
/
docker-compose.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '3'
networks:
proxy:
external: true
pullr:
external: false
services:
pullr-mongodb:
container_name: pullr-mongodb
image: mongo:latest
command: --auth --bind_ip_all
environment:
- MONGO_DATA_DIR=/data/db
volumes:
- "./data/mongodb:/data/db"
labels:
- traefik.enable=false
networks:
pullr:
pullr-rabbitmq:
container_name: pullr-rabitmq
image: rabbitmq:3.7.3-alpine
volumes:
- "./data/rabbbitmq:/var/lib/rabbitmq"
networks:
pullr:
labels:
- traefik.enable=false
docker-registry-tokensrv:
container_name: docker-registry-tokensrv
image: cesanta/docker_auth:1
command: ["--v=3", "--alsologtostderr", "/conf/docker_auth.yml"]
volumes:
- "./conf:/conf:ro"
- "./certs:/certs:ro"
networks:
proxy:
pullr:
depends_on:
- pullr-mongodb
labels:
- traefik.frontend.rule=Host:reg.pullr.dev;PathPrefixStrip:/tokensrv
- traefik.protocol=https
- traefik.port=5001
- traefik.passHostHeader=true
docker-registry-internal:
container_name: docker-registry-internal
image: registry:2
environment:
- REGISTRY_HTTP_ADDR=':5050'
- REGISTRY_AUTH_TOKEN_REALM='https://docker-registry-tokensrv:5001/auth'
volumes:
- "./certs:/certs:ro"
- "./conf/docker_registry.yml:/etc/docker/registry/config.yml:ro"
- "./data/registry:/var/lib/registry:rw"
expose:
- 5050
depends_on:
- docker-registry-tokensrv
labels:
- traefik.enable=false
networks:
pullr:
aliases:
- docker-registry
docker-registry-external:
container_name: docker-registry-external
image: registry:2
volumes:
- "./certs:/certs:ro"
- "./conf/docker_registry.yml:/etc/docker/registry/config.yml:ro"
- "./data/registry:/var/lib/registry:rw"
environment:
- REGISTRY_AUTH_TOKEN_REALM='https://reg.pullr.dev/tokensrv/auth'
depends_on:
- docker-registry-tokensrv
labels:
- traefik.frontend.rule=Host:reg.pullr.dev
- traefik.port=5000
- traefik.protocol=https
- traefik.passHostHeader=true
networks:
proxy:
pullr:
pullr-ui:
container_name: pullr-ui
image: mobingilabs/pullr-ui:localdev
networks:
pullr:
proxy:
labels:
- traefik.frontend.rule=Host:pullr.dev
- traefik.port=80
- traefik.passHostHeader=true
pullr-buildsvc:
container_name: pullr-buildsvc
image: mobingilabs/pullr-buildsvc:localdev
networks:
pullr:
depends_on:
- pullr-mongodb
- pullr-rabbitmq
labels:
- traefik.enabled=false
pullr-apisrv:
container_name: pullr-apisrv
image: mobingilabs/pullr-apisrv:localdev
command: ["serve"]
networks:
pullr:
proxy:
volumes:
- "./certs:/certs:ro"
expose:
- 8080
labels:
- traefik.backend=pullr-apisrv
- traefik.frontend.rule=Host:pullr.dev;PathPrefix:/api
- traefik.docker.network=pullr
- traefik.port=8080
- traefik.passHostHeader=true
environment:
- PULLR_OAUTH_GITHUB_CLIENTID=$GITHUBID
- PULLR_OAUTH_GITHUB_CLIENTSECRET=$GITHUBSECRET
depends_on:
- pullr-mongodb
- pullr-rabbitmq
pullr-proxy:
image: traefik:v1.5.2-alpine
command: ["--docker"]
ports:
- 80:80
- 443:443
volumes:
- "./certs:/certs:ro"
- "./conf/traefik.toml:/traefik.toml:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
proxy:
pullr: