-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.01 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
# How to use :
# docker-compose up -d
# docker-compose down
# --------------------------------------------------------------------------------
version: '2'
services:
nexus_oss_2:
hostname: NEXUS_OSS_2
container_name: NEXUS_OSS_2
build:
context: ./nexus2
dockerfile: ./Dockerfile
environment:
MAX_HEAP: 768m
MIN_HEAP: 256m
volumes:
- ./nexus2/sonatype-work:/sonatype-work
ports:
- 8082:8081
networks:
vpn:
ipv4_address: 172.168.50.2
restart: unless-stopped
nexus_oss_3:
hostname: NEXUS_OSS_3
container_name: NEXUS_OSS_3
image: sonatype/nexus3:3.34.0
environment:
MAX_HEAP: 768m
MIN_HEAP: 256m
volumes:
- ./nexus3/sonatype-work:/nexus-data
ports:
- 8083:8081
networks:
vpn:
ipv4_address: 172.168.50.3
restart: unless-stopped
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.50.0/24
gateway: 172.168.50.1