1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update nexus3

This commit is contained in:
kev 2019-10-19 17:36:39 +08:00
parent 0f395eae21
commit afa86de547
2 changed files with 23 additions and 19 deletions

@ -1,18 +1,6 @@
nexus3 nexus3
====== ======
## docker-compose.yml
```yaml
nexus3:
image: sonatype/nexus3
ports:
- "8081:8081"
volumes:
- ./data:/nexus-data
restart: unless-stopped
```
## up and running ## up and running
```bash ```bash

@ -1,7 +1,23 @@
version: "3.7"
services:
nexus3: nexus3:
image: sonatype/nexus3 image: sonatype/nexus3
ports: ports:
- "8081:8081" - "8081:8081"
volumes: volumes:
- ./data:/nexus-data - ./data:/nexus-data
depends_on:
- minio
restart: unless-stopped
minio:
image: minio/minio
command: gateway oss https://oss-cn-beijing.aliyuncs.com
expose:
- "9000"
environment:
- MINIO_ACCESS_KEY=xxxxxxxxxxxxxxxx
- MINIO_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
restart: unless-stopped restart: unless-stopped