Browse Source

尝试docker-compose启动

pull/212/head
xiaoxie 3 years ago
parent
commit
30f71e531a
  1. 11
      docker/docker-compose.yml
  2. 2
      src/main/resources/application-dev.yml

11
docker/docker-compose.yml

@ -32,14 +32,15 @@ services:
- ./logs/media:/opt/media/logs/
environment:
TZ: "Asia/Shanghai"
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PWD: root
WVP_DOMAIN: 6101130049
WVP_ID: 61011300490000000001
# [必须修改] 本机的IP
WVP_HOST: 172.18.0.61
WVP_PWD: aseqw_+hiy123
WVP_DOMAIN: 6101130049
WVP_ID: 61011300490000000001
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 6
REDIS_PWD: root
ASSIST_CONFIG:
WVP_CONFIG:
depends_on:

2
src/main/resources/application-dev.yml

@ -6,7 +6,7 @@ spring:
# [必须修改] 端口号
port: ${REDIS_PORT:6379}
# [可选] 数据库 DB
database: 6
database: ${REDIS_DB:6}
# [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
password: ${REDIS_PWD}
# [可选] 超时时间

Loading…
Cancel
Save