-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
52 lines (47 loc) · 961 Bytes
/
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
version: '2.2'
networks:
nexus-net:
driver: bridge
driver_opts:
"com.docker.network.bridge.name": "nexus-net"
ipam:
driver: default
config:
- subnet: 10.108.0.0/24
gateway: 10.108.0.1
services:
nexus:
container_name: nexus
image: sonatype/nexus3
init: true
networks:
- nexus-net
volumes:
- ${VOLUME_PATH}:/nexus-data
nginx-proxy:
container_name: nexus-nginx-proxy
image: nginx
init: true
networks:
- nexus-net
links:
- nexus:nexus
ports:
- "443:443"
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
depends_on:
- nexus
manage-nexus:
container_name: nexus-manage
build: ./nexus/
init: true
image: nexus/manage
networks:
- nexus-net
depends_on:
- nexus
environment:
DOCKER_UPSTREAM: ${UPSTREAM_DOCKER_REPO}