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

View File

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