mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
Create docker-compose.yml
This commit is contained in:
parent
0b3ad829d2
commit
386a4021de
22
docker/redis/docker-compose.yml
Normal file
22
docker/redis/docker-compose.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
redis:
|
||||||
|
image: redis:${APP_VERSION}
|
||||||
|
container_name: ${APP_NAME}
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- ${APP_DB_PORT}:6379
|
||||||
|
env_file: .env
|
||||||
|
volumes:
|
||||||
|
- ./src/redis.conf:/etc/redis.conf:ro
|
||||||
|
- redis_data:/data
|
||||||
|
entrypoint: ["redis-server", "/etc/redis.conf"]
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: ${APP_NETWORK}
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
redis_data:
|
Loading…
Reference in New Issue
Block a user