feat: drone.ci

This commit is contained in:
mozzie 2023-03-20 15:49:42 +08:00
parent c944b18786
commit 717d2d3247
2 changed files with 8 additions and 5 deletions

View File

@ -9,7 +9,7 @@ export default (appInfo: MidwayAppInfo): MidwayConfig => {
* *
*/ */
type: 'mysql', type: 'mysql',
host: 'mysql', host: 'backset-mysql',
port: 3307, port: 3307,
username: 'root', username: 'root',
password: 'root', password: 'root',

View File

@ -6,6 +6,9 @@ services:
image: nginx:1.22 image: nginx:1.22
restart: always restart: always
container_name: backset-nginx container_name: backset-nginx
ports:
- "80:80"
- "443:443"
volumes: volumes:
- /www/wwwroot/backset/nginx/conf.d/:/etc/nginx/conf.d/ - /www/wwwroot/backset/nginx/conf.d/:/etc/nginx/conf.d/
- /www/wwwroot/backset/nginx/ssl:/etc/nginx/ssl/ - /www/wwwroot/backset/nginx/ssl:/etc/nginx/ssl/
@ -69,10 +72,10 @@ services:
# links: # links:
# - mysql:mysql # - mysql:mysql
# - redis:redis # - redis:redis
# depends_on: depends_on:
# - mysql - mysql
# - redis - redis
# - nginx - nginx
networks: networks:
backset-net: backset-net: