윤준석

ADD: mysql container mount to volume

1 version: '3' 1 version: '3'
2 2
3 services: 3 services:
4 + db:
5 + image: mamuri-db
6 + restart: always
7 + container_name: mamuri-db-container
8 + ports:
9 + - '13060:3306'
10 + env_file:
11 + - "./database/mysql_init/.env"
12 + volumes:
13 + - "/usr/mysql/data:/var/lib/mysql"
14 +
4 daangn_api: 15 daangn_api:
5 image: daangn-api-server 16 image: daangn-api-server
6 restart: always 17 restart: always
...@@ -20,13 +31,4 @@ services: ...@@ -20,13 +31,4 @@ services:
20 restart: always 31 restart: always
21 container_name: bunjang-api-server-container 32 container_name: bunjang-api-server-container
22 ports: 33 ports:
23 - - '18082:8080'
24 -
25 - db:
26 - image: mamuri-db
27 - restart: always
28 - container_name: mamuri-db-container
29 - ports:
30 - - '13060:3306'
31 - env_file:
32 - - "./database/mysql_init/.env"
...\ No newline at end of file ...\ No newline at end of file
34 + - '18082:8080'
...\ No newline at end of file ...\ No newline at end of file
......