mirror of
https://github.com/easychen/pushdeer.git
synced 2025-04-30 16:29:51 +08:00
将session通过redis持久化
This commit is contained in:
parent
2b44e4d5b0
commit
53ce5fd0ea
@ -9,6 +9,10 @@ services:
|
|||||||
- MYSQL_DATABASE=pushdeer
|
- MYSQL_DATABASE=pushdeer
|
||||||
ports:
|
ports:
|
||||||
- '3306:3306'
|
- '3306:3306'
|
||||||
|
redis:
|
||||||
|
image: 'bitnami/redis:6.0.16'
|
||||||
|
environment:
|
||||||
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
app:
|
app:
|
||||||
#image: 'webdevops/php-apache:8.0-alpine'
|
#image: 'webdevops/php-apache:8.0-alpine'
|
||||||
build: './docker/web/'
|
build: './docker/web/'
|
||||||
@ -18,6 +22,7 @@ services:
|
|||||||
- './:/app'
|
- './:/app'
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
- mariadb
|
||||||
|
- redis
|
||||||
environment:
|
environment:
|
||||||
- DB_HOST=mariadb
|
- DB_HOST=mariadb
|
||||||
- DB_PORT=3306
|
- DB_PORT=3306
|
||||||
|
@ -8,6 +8,8 @@ COPY vhost.conf /opt/docker/etc/httpd/vhost.conf
|
|||||||
# https://dockerfile.readthedocs.io/en/latest/content/Customization/provisioning.html
|
# https://dockerfile.readthedocs.io/en/latest/content/Customization/provisioning.html
|
||||||
COPY init.sh /opt/docker/provision/entrypoint.d/
|
COPY init.sh /opt/docker/provision/entrypoint.d/
|
||||||
#CMD chmod +x /opt/docker/provision/entrypoint.d/init.sh
|
#CMD chmod +x /opt/docker/provision/entrypoint.d/init.sh
|
||||||
|
RUN echo "session.save_handler = redis\n" >> /opt/docker/etc/php/php.webdevops.ini
|
||||||
|
RUN echo "session.save_path = 'tcp://redis:6379'\n" >> /opt/docker/etc/php/php.webdevops.ini
|
||||||
|
|
||||||
# ADD supervisord-proxy.conf /opt/docker/etc/supervisor.d/prism-proxy.conf
|
# ADD supervisord-proxy.conf /opt/docker/etc/supervisor.d/prism-proxy.conf
|
||||||
RUN mkdir /data
|
RUN mkdir /data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user