db test
This commit is contained in:
@@ -8,22 +8,20 @@ services:
|
||||
- ./:/app
|
||||
ports:
|
||||
- "${PORT}:${PORT}"
|
||||
command: sh -c "npm install && npm start"
|
||||
command: sh -c "npm install && npm run dev"
|
||||
db:
|
||||
image: postgres:16
|
||||
container_name: postgres-db
|
||||
restart: always
|
||||
image: mysql:8.1
|
||||
container_name: my_mysql
|
||||
environment:
|
||||
POSTGRES_USER: how2ice
|
||||
POSTGRES_PASSWORD: tnals1459
|
||||
POSTGRES_DB: mydb
|
||||
ports:
|
||||
- "5432:5432"
|
||||
MYSQL_ROOT_PASSWORD: tnals1459
|
||||
MYSQL_USER: how2ice
|
||||
MYSQL_PASSWORD: tnals1459
|
||||
MYSQL_DATABASE: mydb
|
||||
volumes:
|
||||
- ./db_data/data:/var/lib/postgresql/data
|
||||
- ./db_data/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
#networks:
|
||||
# - msa-net
|
||||
volumes:
|
||||
db:
|
||||
# 초기화 SQL 스크립트 폴더
|
||||
- ./db_data/init.d:/docker-entrypoint-initdb.d:ro
|
||||
# MySQL 데이터 저장
|
||||
- ./db_data/data:/var/lib/mysql
|
||||
#ports:
|
||||
#- "3306:3306"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user