mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
include redis
This commit is contained in:
+14
-1
@@ -4,7 +4,7 @@ services:
|
||||
image: mariadb:10.5.9
|
||||
logging:
|
||||
driver: none
|
||||
command: --max_allowed_packet=256M
|
||||
command: [--max-allowed-packet=512M]
|
||||
volumes:
|
||||
- "./data/db:/var/lib/mysql:delegated"
|
||||
environment:
|
||||
@@ -48,6 +48,19 @@ services:
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
redis:
|
||||
image: "redis:alpine"
|
||||
logging:
|
||||
driver: none
|
||||
# command: redis-server --requirepass 8b405f60665e48f795752e534d93b722
|
||||
volumes:
|
||||
- ./redis/data:/var/lib/redis
|
||||
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
|
||||
environment:
|
||||
- REDIS_REPLICATION_MODE=master
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user