Skip to content

Commit ce81f6a

Browse files
committed
Update README.md
1 parent dbd6df6 commit ce81f6a

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ docker volume create --driver local --opt type=none --opt device=${DIRECTORY_PAT
118118
```
119119

120120
```
121-
docker-compose up -d
121+
docker compose up -d
122122
```
123123

124124
then reloading for webserver ssl configuration
@@ -135,7 +135,7 @@ For convenience you may add a new entry into your hosts file.
135135

136136
```
137137
docker volume create portainer_data
138-
docker-compose -f portainer-docker-compose.yml -p portainer up -d
138+
docker compose -f portainer-docker-compose.yml -p portainer up -d
139139
```
140140
manage docker with [Portainer](https://www.portainer.io/solutions/docker) is the definitive container management tool for Docker, Docker Swarm with it's highly intuitive GUI and API.
141141

@@ -158,21 +158,21 @@ docker ps -a
158158
You can start the containers with the `up` command in daemon mode (by adding `-d` as an argument) or by using the `start` command:
159159

160160
```
161-
docker-compose start
161+
docker compose start
162162
```
163163

164164
### Stopping containers
165165

166166
```
167-
docker-compose stop
167+
docker compose stop
168168
```
169169

170170
### Removing containers
171171

172172
To stop and remove all the containers use the `down` command:
173173

174174
```
175-
docker-compose down
175+
docker compose down
176176
```
177177

178178
to remove portainer and the other containers
@@ -183,7 +183,7 @@ docker rm -f $(docker ps -a -q)
183183
Use `-v` if you need to remove the database volume which is used to persist the database:
184184

185185
```
186-
docker-compose down -v
186+
docker compose down -v
187187
```
188188

189189
to remove external certbot-etc and portainer and the other volumes
@@ -199,7 +199,7 @@ Copy all files into a new directory:
199199
You can now use the `up` command:
200200

201201
```
202-
docker-compose up -d
202+
docker compose up -d
203203
```
204204

205205
### Docker run reference
@@ -241,18 +241,23 @@ Example: Cache every successful HTTP response for 24 hours in the local Redis se
241241

242242
```
243243
use Slim\Factory\AppFactory;
244+
use Slim\Factory\ServerRequestCreatorFactory;
244245
245246
require __DIR__ . '/../vendor/autoload.php';
246247
247248
$app = AppFactory::create();
248249
249250
//...
250251
251-
$client = new \Predis\Client('tcp://redis:6379', [
252+
// Create Request object from globals
253+
$serverRequestCreator = ServerRequestCreatorFactory::create();
254+
$request = $serverRequestCreator->createServerRequestFromGlobals();
255+
256+
$client = new \Predis\Client('tcp://localhost:6379', [
252257
'prefix' => $request->getUri()->getHost()
253258
]);
254259
255-
$app->add(new \RedisCache\Cache($client, [
260+
$app->add(new \damalis\RedisCache\Cache($client, [
256261
'timeout' => 86400
257262
]));
258263

0 commit comments

Comments
 (0)