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

View File

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