Skip to content

Commit

Permalink
修改docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
piaoyunsoft committed Oct 11, 2019
1 parent f36827f commit dc711fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@

## 启动容器

* 方法1:

```
docker run -i -t -d --name bt_lnmp_test -p 20:20 -p 21:21 -p 80:80 -p 443:443 -p 888:888 -p 8888:8888 --privileged=true -v $PWD/www:/www piaoyun/bt_lnmp:1.0 bash /start.sh
```

* 方法2:

```
docker run -i -t -d --name bt_lnmp_test -p 20:20 -p 21:21 -p 80:80 -p 443:443 -p 888:888 -p 8888:8888 --privileged=true -v $PWD/www:/www piaoyun/bt_lnmp:1.0
docker exec -it bt_lnmp_test bash ./start.sh
docker-compose up -d
```

## 面板入口:http://IP:8888/admin
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ baotamiaban:
volumes:
- ./www:/www
privileged: true
#command: bash /start.sh
command: bash /start.sh
container_name: bt_lnmp_test

0 comments on commit dc711fb

Please sign in to comment.