-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.nexus.yml
More file actions
65 lines (59 loc) · 1.41 KB
/
docker-compose.nexus.yml
File metadata and controls
65 lines (59 loc) · 1.41 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.4'
x-logging: &_logging
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
networks:
default:
http-proxy:
external:
name: http-proxy
nginx:
external:
name: nginx
volumes:
nexus-data:
services:
nexus:
build:
context: .
dockerfile: Dockerfile.nexus3
image: bf-nexus3
logging:
<<: *_logging
volumes:
- nexus-data:/nexus-data
restart: always
nexus-nginx:
build:
args:
# - http_proxy=http://http-proxy:3189/
- NGINX_UPGRADE=1
context: .
dockerfile: Dockerfile.nginx
# network: http-proxy
depends_on:
- nexus
environment:
- CERT_NAME=${VHOST_NEXUS_CERT_NAME}
# - LETSENCRYPT_VHOST=docker-registry.${VHOST_NEXUS_SUFFIX},docker-nexus.${VHOST_NEXUS_SUFFIX}
# - LETSENCRYPT_EMAIL=${VHOST_LETSENCRYPT_EMAIL}
- VIRTUAL_HOST=docker-registry-mirror.${VHOST_NEXUS_SUFFIX},docker-registry.${VHOST_NEXUS_SUFFIX},nexus.${VHOST_NEXUS_SUFFIX},maven-mirror.${VHOST_NEXUS_SUFFIX}
- HTTPS_METHOD=noredirect
image: bf-nexus3-nginx
logging:
<<: *_logging
networks:
default:
http-proxy:
aliases:
- docker-registry-mirror
- docker-registry
- maven-mirror
- npm-registry
- npm-proxy
nginx:
restart: always
volumes:
- ./etc/nginx-nexus3/conf.d/:/etc/nginx/conf.d/:ro