$ sudo apt install python3-pip $ sudo pip install docker-compose $ docker-compose -version docker-compose version 1.29.2, build unknown
cf. https://github.com/docker/compose
/home/{USER}/Documents/ +--docker_nexus3/ +--docker-compose.yml
version: '3'
services:
nexus:
image: sonatype/nexus3
environment:
INSTALL4J_ADD_VM_PARAMS: -Xmx2g
ports:
- 8081:8081
volumes:
- /data/nexus-data:/nexus-data
restart: always
1 コンテナ構成なら、だいたいこれで機能で尽くし。つまり、docker コマンドの引数が YAML 形式で書いてあるだけ$ mkdir /some/dir/nexus-data && chown -R 200 /some/dir/nexus-data
$ docker-compose up
$ docker-compose up -d
$ docker-compose up --build
$ docker-compose stop
$ docker-compose restart
$ docker-compose down
$ docker-compose down --rmi all
$ docker-compose down -v
[[source]]
name = "pypi"
url = "http://192.168.10.32.nip.io:8081/repository/pypi-group/simple"
verify_ssl = false
[dev-packages]
[packages]
numpy = "*"
[requires]
python_version = "3.8"
$ pipenv install numpy
Installing numpy...
Adding numpy to Pipfile's [packages]...
Installation Succeeded
...