We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker pull redis:6.2
docker run -v $PWD/data/:/data/ --name redis-6.2 -p 6379:6379 -d redis:6.2 redis-server --appendonly yes
docker run -v $PWD/conf/:/usr/local/etc/redis/ -v $PWD/data/:/data/ --name redis-6.2 -p 6379:6379 -d redis:6.2 redis-server /usr/local/etc/redis/redis.conf --appendonly yes
docker pull nginx:1.21
docker run -v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf -v $PWD/conf/conf.d/default.conf:/etc/nginx/conf.d/default.conf --name nginx-1.21 -d -p 80:80 nginx:1.21
nginx.conf
docker
location / { # 反向代理到宿主机上的服务 proxy_pass http://docker.for.mac.host.internal:8000; }
docker pull mongo:4.4
docker run -v $PWD/data:/data/db --name mongo-4.4 -d -p 27017:27017 mongo:4.4
docker run -v $PWD/data:/data/db -v $PWD/conf:/etc/mongo --name mongo-4.4 -d -p 27017:27017 mongo:4.4 --config /etc/mongo/mongod.conf
The text was updated successfully, but these errors were encountered:
No branches or pull requests
安装Redis
docker run -v $PWD/data/:/data/ --name redis-6.2 -p 6379:6379 -d redis:6.2 redis-server --appendonly yes
安装Nginx
nginx.conf
,让docker
反向代理Mac宿主机安装MongoDB
docker run -v $PWD/data:/data/db --name mongo-4.4 -d -p 27017:27017 mongo:4.4
The text was updated successfully, but these errors were encountered: