diff --git a/docker-compose.yml b/docker-compose.yml index 2ab00ea..cc66a20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: "3" services: web: image: backset/server:1.0 - build: + build: context: ./ dockerfile: Dockerfile.release restart: always @@ -22,9 +22,12 @@ services: ports: - 46033:3306 environment: - - MYSQL_DATABASE: backset - - MYSQL_USER: backset - - MYSQL_PASSWORD: backset + - "MYSQL_DATABASE=backset" + - "MYSQL_USER=backset" + - "MYSQL_PASSWORD=backset" + - "MYSQL_ROOT_PASSWORD=root" + - "MYSQL_ROOT_HOST='%'" + - "TZ=Asia/Shanghai" volumes: - /www/wwwroot/mysql/conf/my.cnf:/etc/mysql/conf.d/mysqld.cnf - /www/wwwroot/mysql/data:/var/lib/mysql @@ -55,4 +58,4 @@ networks: driver: default config: - subnet: "172.16.238.0/24" - - subnet: "2001:3984:3989::/64" \ No newline at end of file + - subnet: "2001:3984:3989::/64"