You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone this repository or copy the files from this repository into a new folder. In the **docker-compose.yml** file you may change the database from MariaDB to MySQL.
105
+
Clone this repository or copy the files from this repository into a new folder.
74
106
75
107
Make sure to [add your user to the `docker` group](https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user).
76
108
@@ -79,6 +111,7 @@ Make sure to [add your user to the `docker` group](https://docs.docker.com/insta
for localhost ssl: Generate Self-signed SSL Certificate with guide [mkcert repository](https://github.com/FiloSottile/mkcert).
164
+
120
165
```
121
166
docker compose up -d
122
167
```
@@ -136,6 +181,7 @@ For convenience you may add a new entry into your hosts file.
136
181
```
137
182
docker compose -f portainer-docker-compose.yml -p portainer up -d
138
183
```
184
+
139
185
manage docker with [Portainer](https://www.portainer.io/) is the definitive container management tool for Docker, Docker Swarm with it's highly intuitive GUI and API.
140
186
141
187
You can also visit `https://example.com:9001` to access portainer after starting the containers.
@@ -174,7 +220,8 @@ To stop and remove all the containers use the `down` command:
174
220
docker compose down
175
221
```
176
222
177
-
to remove portainer and the other containers
223
+
to remove portainer and the other containers:
224
+
178
225
```
179
226
docker rm -f $(docker ps -a -q)
180
227
```
@@ -185,17 +232,38 @@ Use `-v` if you need to remove the database volume which is used to persist the
185
232
docker compose down -v
186
233
```
187
234
188
-
to remove external certbot-etc and portainer and the other volumes
235
+
to remove external certbot-etc and portainer and the other volumes:
189
236
190
237
```
191
238
docker volume rm $(docker volume ls -q)
192
239
```
193
240
194
-
to remove portainer and the other images
241
+
Delete all images, containers, volumes, and networks that are not associated with a container (dangling):
242
+
243
+
```
244
+
docker system prune
245
+
```
246
+
247
+
To additionally remove any stopped containers and all unused images (not just dangling ones), add the -a flag to the command:
248
+
249
+
```
250
+
docker system prune -a
251
+
```
252
+
253
+
to remove portainer and the other images:
254
+
195
255
```
196
256
docker rmi $(docker image ls -q)
197
257
```
198
258
259
+
### Logs containers
260
+
261
+
To fetch the logs of a container.
262
+
263
+
```
264
+
docker container logs container_name_or_id
265
+
```
266
+
199
267
### Project from existing source
200
268
201
269
Copy all files into a new directory:
@@ -249,9 +317,59 @@ add or remove code in the ```./webserver/extra/httpd-vhosts.conf``` file for cus
249
317
250
318
#### Redis
251
319
252
-
see [Redis Cache](https://book.cakephp.org/4/en/core-libraries/caching.html#redisengine-options) options and must add below code to config file.
253
-
254
-
modify redis cache configuration values in the ```/app/basic/config/app_local.php``` file.
320
+
see [Redis Cache](https://book.cakephp.org/5/en/core-libraries/caching.html#redisengine-options) options and must add below code to config file.
321
+
322
+
```
323
+
/**
324
+
* Configure the cache adapters.
325
+
*/
326
+
'Cache' => [
327
+
'default' => [
328
+
'className' => 'Redis',
329
+
'path' => CACHE,
330
+
'password' => false,
331
+
'server' => 'redis',
332
+
'port' => 6379,
333
+
],
334
+
335
+
/**
336
+
* Configure the cache used for general framework caching.
337
+
* Translation cache files are stored with this configuration.
338
+
*/
339
+
'_cake_core_' => [
340
+
'className' => 'Redis',
341
+
'prefix' => 'myapp_cake_core_',
342
+
'path' => CACHE . 'persistent/',
343
+
'serialize' => true,
344
+
'duration' => '+2 minutes',
345
+
'server' => 'redis',
346
+
'port' => 6379,
347
+
'password' => false,
348
+
],
349
+
350
+
/**
351
+
* Configure the cache for model and datasource caches. This cache
352
+
* configuration is used to store schema descriptions, and table listings
353
+
* in connections.
354
+
*/
355
+
'_cake_model_' => [
356
+
'className' => 'Redis',
357
+
'prefix' => 'myapp_cake_model_',
358
+
'path' => CACHE . 'models/',
359
+
'serialize' => true,
360
+
'duration' => '+2 minutes',
361
+
'server' => 'redis',
362
+
'port' => 6379,
363
+
'password' => false,
364
+
],
365
+
],
366
+
```
367
+
368
+
modify redis cache configuration values in the ```./cakephp/config/app_local.php``` file.
0 commit comments