feat: drone.ci

This commit is contained in:
mozzie 2023-03-20 14:42:11 +08:00
parent e182051dbe
commit 7d7294a56e
2 changed files with 6 additions and 9 deletions

View File

@ -10,7 +10,7 @@ export default (appInfo: MidwayAppInfo): MidwayConfig => {
*/
type: 'mysql',
host: 'backset-mysql',
port: 3306,
port: 3307,
username: 'root',
password: 'root',
database: 'backset',
@ -26,7 +26,7 @@ export default (appInfo: MidwayAppInfo): MidwayConfig => {
redis: {
client: {
host: 'backset-redis', // Redis host
port: 6379, // Redis port
port: 26379, // Redis port
password: 'cr654654.',
db: 0,
},

View File

@ -21,15 +21,14 @@ services:
restart: always
container_name: backset-mysql
ports:
- 46033:3306
expose:
- 3306
- 3307:3307
environment:
- "MYSQL_DATABASE=backset"
- "MYSQL_USER=backset"
- "MYSQL_PASSWORD=backset"
- "MYSQL_ROOT_PASSWORD=root"
- "MYSQL_ROOT_HOST='%'"
- "MYSQL_TCP_PORT=3307"
- "TZ=Asia/Shanghai"
volumes:
- /www/wwwroot/mysql/conf/my.cnf:/etc/mysql/conf.d/mysqld.cnf
@ -46,13 +45,11 @@ services:
container_name: backset-redis
restart: always
ports:
- 46379:6379
expose:
- 6379
- 26379:26379
volumes:
- /www/wwwroot/redis/conf:/etc/redis/redis.conf
- /www/wwwroot/redis/data:/data
command: redis-server --appendonly yes --requirepass "cr654654."
command: redis-server --requirepass "cr654654." --port 26379
networks:
backset-net:
ipv4_address: 172.16.238.44