diff --git a/docker-compose.yml b/docker-compose.yml index 29f935367..cec84d55a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: restart: unless-stopped tty: true ports: - - 3308:3306 + - 13306:3306 environment: MYSQL_DATABASE: ${MYSQL_DATABASE:-ruoyi-vue-pro} MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123456} @@ -23,7 +23,9 @@ services: image: redis:6-alpine restart: unless-stopped ports: - - 6379:6379 + - 16379:6379 + volumes: + - redis:/data networks: - yudao-network @@ -89,3 +91,5 @@ networks: volumes: mysql: driver: local + redis: + driver: local