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.
102
+
Clone this repository or copy the files from this repository into a new folder.
72
103
73
104
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).
for localhost ssl: Generate Self-signed SSL Certificate with guide [mkcert repository](https://github.com/FiloSottile/mkcert).
161
+
117
162
```
118
163
docker compose up -d
119
164
```
@@ -133,6 +178,7 @@ For convenience you may add a new entry into your hosts file.
133
178
```
134
179
docker compose -f portainer-docker-compose.yml -p portainer up -d
135
180
```
181
+
136
182
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.
137
183
138
184
You can also visit `https://example.com:9001` to access portainer after starting the containers.
@@ -171,7 +217,8 @@ To stop and remove all the containers use the `down` command:
171
217
docker compose down
172
218
```
173
219
174
-
to remove portainer and the other containers
220
+
to remove portainer and the other containers:
221
+
175
222
```
176
223
docker rm -f $(docker ps -a -q)
177
224
```
@@ -182,17 +229,38 @@ Use `-v` if you need to remove the database volume which is used to persist the
182
229
docker compose down -v
183
230
```
184
231
185
-
to remove external certbot-etc and portainer and the other volumes
232
+
to remove external certbot-etc and portainer and the other volumes:
186
233
187
234
```
188
235
docker volume rm $(docker volume ls -q)
189
236
```
190
237
191
-
to remove portainer and the other images
238
+
Delete all images, containers, volumes, and networks that are not associated with a container (dangling):
239
+
240
+
```
241
+
docker system prune
242
+
```
243
+
244
+
To additionally remove any stopped containers and all unused images (not just dangling ones), add the -a flag to the command:
245
+
246
+
```
247
+
docker system prune -a
248
+
```
249
+
250
+
to remove portainer and the other images:
251
+
192
252
```
193
253
docker rmi $(docker image ls -q)
194
254
```
195
255
256
+
### Logs containers
257
+
258
+
To fetch the logs of a container.
259
+
260
+
```
261
+
docker container logs container_name_or_id
262
+
```
263
+
196
264
### Project from existing source
197
265
198
266
Copy all files into a new directory:
@@ -238,9 +306,59 @@ add or remove code in the ```./webserver/templates/nginx.conf.template``` file f
238
306
239
307
#### Redis
240
308
241
-
see [Redis Cache](https://book.cakephp.org/4/en/core-libraries/caching.html#redisengine-options) options and must add below code to config file.
242
-
243
-
modify redis cache configuration values in the ```/app/basic/config/app_local.php``` file.
309
+
see [Redis Cache](https://book.cakephp.org/5/en/core-libraries/caching.html#redisengine-options) options and must add below code to config file.
310
+
311
+
```
312
+
/**
313
+
* Configure the cache adapters.
314
+
*/
315
+
'Cache' => [
316
+
'default' => [
317
+
'className' => 'Redis',
318
+
'path' => CACHE,
319
+
'password' => false,
320
+
'server' => 'redis',
321
+
'port' => 6379,
322
+
],
323
+
324
+
/**
325
+
* Configure the cache used for general framework caching.
326
+
* Translation cache files are stored with this configuration.
327
+
*/
328
+
'_cake_core_' => [
329
+
'className' => 'Redis',
330
+
'prefix' => 'myapp_cake_core_',
331
+
'path' => CACHE . 'persistent/',
332
+
'serialize' => true,
333
+
'duration' => '+2 minutes',
334
+
'server' => 'redis',
335
+
'port' => 6379,
336
+
'password' => false,
337
+
],
338
+
339
+
/**
340
+
* Configure the cache for model and datasource caches. This cache
341
+
* configuration is used to store schema descriptions, and table listings
342
+
* in connections.
343
+
*/
344
+
'_cake_model_' => [
345
+
'className' => 'Redis',
346
+
'prefix' => 'myapp_cake_model_',
347
+
'path' => CACHE . 'models/',
348
+
'serialize' => true,
349
+
'duration' => '+2 minutes',
350
+
'server' => 'redis',
351
+
'port' => 6379,
352
+
'password' => false,
353
+
],
354
+
],
355
+
```
356
+
357
+
modify redis cache configuration values in the ```./cakephp/config/app_local.php``` file.
0 commit comments