This commit is contained in:
sf 2021-10-02 15:29:58 +02:00
parent 4ea6f0fcf0
commit 285458fd07
3 changed files with 20 additions and 0 deletions

2
.env.dist Normal file
View File

@ -0,0 +1,2 @@
NEXUS_DATA_PATH="/path/to/data"
NEXUS_EXTERNAL_IP="127.0.0.1"

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

17
docker-compose.yaml Normal file
View File

@ -0,0 +1,17 @@
version: "3"
services:
nexus:
image: "sonatype/nexus3"
container_name: "nexus"
restart: "unless-stopped"
logging:
driver: "journald"
options:
tag: "nexus"
volumes:
- "${NEXUS_DATA_PATH}:/nexus-data"
ports:
- "${NEXUS_EXTERNAL_IP}:8081:8081"
- "${NEXUS_EXTERNAL_IP}:8082:8082"
- "127.0.0.1:8081:8081"