@@ -31,11 +31,59 @@ Replace all files and delete the `cache` folder.
3131
3232## Docker
3333
34- There is no official image yet,
35- but you can create your own and set ENV variables such as these
36- ` PCA_REDIS_0_HOST=127.0.0.1 ` , ` PCA_REDIS_0_PORT=6379 ` .
34+ https://hub.docker.com/r/robinn/phpcacheadmin
35+
36+ Run with single command:
37+
38+ ```
39+ docker run -p 8080:80 -d --name phpcacheadmin -e "PCA_REDIS_0_HOST=redis_host" -e "PCA_REDIS_0_PORT=6379" -e "PCA_MEMCACHED_0_HOST=memcached_host" -e "PCA_MEMCACHED_0_PORT=11211" robinn/phpcacheadmin
40+ ```
41+
42+ Or simply use it in ** docker-compose.yml**
43+
44+ ``` yaml
45+ version : ' 3'
46+
47+ services :
48+ phpcacheadmin :
49+ image : robinn/phpcacheadmin
50+ ports :
51+ - " 8080:80"
52+ environment :
53+ - PCA_REDIS_0_HOST=redis
54+ - PCA_REDIS_0_PORT=6379
55+ - PCA_MEMCACHED_0_HOST=memcached
56+ - PCA_MEMCACHED_0_PORT=11211
57+ links :
58+ - redis
59+ - memcached
60+ redis :
61+ image : redis
62+ memcached :
63+ image : memcached
64+ ` ` `
3765
38- You can change any config option, it just must have ` PCA_ ` prefix.
66+ > **Note**
67+ >
68+ > Is not required to have both Redis and Memcached.
69+
70+ #### Environment variables
71+
72+ Redis:
73+
74+ - ` PCA_REDIS_0_NAME` The server name for info panel, useful when you have multiple servers added (Optional, default name is Localhost)
75+ - ` PCA_REDIS_0_HOST` Redis server host.
76+ - ` PCA_REDIS_0_PORT` Redis server port (Optional, default is 6379)
77+ - ` PCA_REDIS_0_DATABASE` Redis database (Optional, default is 0)
78+ - ` PCA_REDIS_0_PASSWORD` (Optional, empty by default)
79+
80+ Memcached :
81+
82+ - ` PCA_MEMCACHED_0_NAME` The server name for info panel, useful when you have multiple servers added (Optional, default name is Localhost)
83+ - ` PCA_MEMCACHED_0_HOST` Memcached server host.
84+ - ` PCA_MEMCACHED_0_PORT` Memcached server port (Optional, default is 11211)
85+
86+ To add another server, add the same environment variables, but change 0 to 1 (2 for third server and so on).
3987
4088# # Requirements
4189
0 commit comments