update: update docker-compose clear
This commit is contained in:
@@ -42,9 +42,11 @@ COPY tsconfig.json .
|
||||
COPY tsconfig.build.json .
|
||||
RUN npm run build
|
||||
|
||||
|
||||
#ENTRYPOINT ["init.sh"]
|
||||
EXPOSE 4000
|
||||
CMD ["mysqld"]
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
#COPY init.sh .
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[client]
|
||||
default-character-set = utf8mb4
|
||||
port = 3306
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
@@ -8,4 +7,10 @@ max_allowed_packet = 16M
|
||||
|
||||
[mysql]
|
||||
default-character-set = utf8mb4
|
||||
port = 3306
|
||||
|
||||
[mysqld]
|
||||
init-connect = 'SET collation_connection = utf8mb4_unicode_ci'
|
||||
init-connect = 'SET NAMES utf8mb4'
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
default_time_zone='+09:00'
|
||||
|
||||
@@ -82,18 +82,15 @@ services:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: ./Dockerfile.dev
|
||||
image: mysql:5.7
|
||||
ports:
|
||||
- "4000:4000"
|
||||
networks:
|
||||
- vanillameta
|
||||
depends_on:
|
||||
- mysql
|
||||
# - pg
|
||||
# - mssql
|
||||
links:
|
||||
- "mysql:mysqldb"
|
||||
# - "pg"
|
||||
# - mssql
|
||||
- "mysql"
|
||||
env_file:
|
||||
- .env
|
||||
tty: true
|
||||
@@ -125,15 +122,6 @@ services:
|
||||
- ./db/conf.d:/etc/mysql/conf.d
|
||||
- ./mysql-init-files/dump_data:/docker-entrypoint-initdb.d
|
||||
|
||||
testdb:
|
||||
image: mysql:5.7
|
||||
ports:
|
||||
- "3307:3306"
|
||||
restart: always
|
||||
|
||||
|
||||
|
||||
|
||||
# mariadb:
|
||||
# container_name: vanillameta_mariadb
|
||||
# extra_hosts:
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
# mysql_config_editor set --login-path=test --host=dev-sellerking-service.cpxfjdgipx1h.ap-northeast-2.rds.amazonaws.com --user=vanillabrain --password
|
||||
# Enter password: qkslffk123123
|
||||
|
||||
mysqldump --single-transaction --databases --column-statistics=0 vanillameta_auth -h localhost -u vanillabrain -pqkslffk123123 < /docker-entrypoint-initdb.d/dump_data/dump_data.sql
|
||||
mysqldump --single-transaction --databases --column-statistics=0 vanillameta_auth -h localhost -u vanillabrain -pqkslffk123123 < /docker-entrypoint-initdb.d
|
||||
# mysqldump -h dev-sellerking-service.cpxfjdgipx1h.ap-northeast-2.rds.amazonaws.com -u vanillabrain --password > dump_data.sql
|
||||
|
||||
#end of init.sh
|
||||
#end of init.sh
|
||||
|
||||
# mysqldump --single-transaction --databases --column-statistics=0 vanillameta_auth -h localhost -u vanillabrain -pqkslffk123123 < dump_data.sql
|
||||
Reference in New Issue
Block a user