Skip to content

Commit

Permalink
Merge pull request #264 from govarthenan/update-docker-compose-v2
Browse files Browse the repository at this point in the history
Update README.md with docker compose replacing docker-compose
  • Loading branch information
MrOffline77 authored Feb 10, 2024
2 parents 31b4a07 + eaaaaf8 commit 0d6e0cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ As of now, we have several different PHP versions. Use appropriate php version a

- Clone this repository on your local computer
- configure .env as needed
- Run the `docker-compose up -d`.
- Run the `docker compose up -d`.

```shell
git clone https://github.com/sprintcube/docker-compose-lamp.git
cd docker-compose-lamp/
cp sample.env .env
// modify sample.env as needed
docker-compose up -d
docker compose up -d
// visit localhost
```

Expand Down Expand Up @@ -130,14 +130,14 @@ By default following modules are enabled.
- headers

> If you want to enable more modules, just update `./bin/phpX/Dockerfile`. You can also generate a PR and we will merge if seems good for general purpose.
> You have to rebuild the docker image by running `docker-compose build` and restart the docker containers.
> You have to rebuild the docker image by running `docker compose build` and restart the docker containers.
#### Connect via SSH

You can connect to web server using `docker-compose exec` command to perform various operation on it. Use below command to login to container via ssh.
You can connect to web server using `docker compose exec` command to perform various operation on it. Use below command to login to container via ssh.

```shell
docker-compose exec webserver bash
docker compose exec webserver bash
```

## PHP
Expand All @@ -164,7 +164,7 @@ May differ for PHP Versions <7.x.x
- gd

> If you want to install more extension, just update `./bin/webserver/Dockerfile`. You can also generate a PR and we will merge if it seems good for general purpose.
> You have to rebuild the docker image by running `docker-compose build` and restart the docker containers.
> You have to rebuild the docker image by running `docker compose build` and restart the docker containers.
## phpMyAdmin

Expand Down

0 comments on commit 0d6e0cc

Please sign in to comment.