docs: update docs of README.mds.
summary: update command docker compose to docker-compose.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
## Nextcloud with Postgres database
|
||||
|
||||
This example defines one of the base setups for Nextcloud. More details on how to
|
||||
further customize the installation and the compose file can be found on the
|
||||
[official image page](https://hub.docker.com/_/nextcloud).
|
||||
|
||||
|
||||
Project structure:
|
||||
|
||||
```
|
||||
.
|
||||
├── compose.yaml
|
||||
@@ -12,6 +13,7 @@ Project structure:
|
||||
```
|
||||
|
||||
[_compose.yaml_](compose.yaml)
|
||||
|
||||
```
|
||||
services:
|
||||
nc:
|
||||
@@ -30,7 +32,7 @@ port 80 of the host as specified in the compose file.
|
||||
## Deploy with docker compose
|
||||
|
||||
```
|
||||
$ docker compose up -d
|
||||
$ docker-compose up -d
|
||||
Creating network "nextcloud-postgres_default" with the default driver
|
||||
Creating volume "nextcloud-postgres_nc_data" with default driver
|
||||
Pulling nc (nextcloud:apache)...
|
||||
@@ -41,10 +43,10 @@ Creating nextcloud-postgres_nc_1 ... done
|
||||
Creating nextcloud-postgres_db_1 ... done
|
||||
```
|
||||
|
||||
|
||||
## Expected result
|
||||
|
||||
Check containers are running and the port mapping:
|
||||
|
||||
```
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
@@ -60,5 +62,5 @@ Nextcloud service.
|
||||
Stop and remove the containers
|
||||
|
||||
```
|
||||
$ docker compose down
|
||||
$ docker-compose down
|
||||
```
|
||||
|
Reference in New Issue
Block a user