Docker db volume - db-learnsteam

This commit is contained in:
JongYeob Sheen 2023-11-18 13:09:34 +09:00
parent 8fdf6b42e2
commit 942f1efc40
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ services:
ports: ports:
- "33061:3306" - "33061:3306"
volumes: volumes:
- db-learnsteam-dev:/var/lib/mysql - db-learnsteam:/var/lib/mysql
app: app:
build: build:
context: ../../ context: ../../
@ -27,4 +27,4 @@ services:
- db - db
restart: always restart: always
volumes: volumes:
db-learnsteam-dev: db-learnsteam:

View File

@ -9,7 +9,7 @@ services:
ports: ports:
- "3306:3306" - "3306:3306"
volumes: volumes:
- db-learnsteam-local:/var/lib/mysql - db-learnsteam:/var/lib/mysql
app: app:
build: build:
context: ../../ context: ../../
@ -27,4 +27,4 @@ services:
DB_NAME: learnsteam_quiz DB_NAME: learnsteam_quiz
restart: always restart: always
volumes: volumes:
db-learnsteam-local: db-learnsteam:

View File

@ -27,4 +27,4 @@ services:
- db - db
restart: always restart: always
volumes: volumes:
db-learnsteam-dev: db-learnsteam: