feat: drone.ci

This commit is contained in:
mozzie 2023-03-20 14:17:32 +08:00
parent 0566389f87
commit 70b60e35f8
2 changed files with 7 additions and 4 deletions

View File

@ -9,7 +9,7 @@ export default (appInfo: MidwayAppInfo): MidwayConfig => {
*
*/
type: 'mysql',
host: 'backset-mysql',
host: '172.16.238.33',
port: 43306,
username: 'backset',
password: 'backset',
@ -25,7 +25,7 @@ export default (appInfo: MidwayAppInfo): MidwayConfig => {
},
redis: {
client: {
host: 'backset-redis', // Redis host
host: '172.16.238.44', // Redis host
port: 46379, // Redis port
password: 'cr654654.',
db: 0,

View File

@ -12,6 +12,7 @@ services:
- 7001:7001
networks:
backset-net:
ipv4_address: 172.16.238.11
aliases:
- backset-server
@ -36,6 +37,7 @@ services:
- /www/wwwroot/mysql/logs:/var/log/mysql
networks:
backset-net:
ipv4_address: 172.16.238.33
aliases:
- backset-mysql
@ -44,15 +46,16 @@ services:
container_name: backset-redis
restart: always
ports:
- 26379:6379
- 46379:6379
expose:
- 26379
- 46379
volumes:
- /www/wwwroot/redis/conf:/etc/redis/redis.conf
- /www/wwwroot/redis/data:/data
command: redis-server --appendonly yes --requirepass "cr654654."
networks:
backset-net:
ipv4_address: 172.16.238.44
aliases:
- backset-redis