-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 905 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
client:
volumes:
- /app/node_modules
- ./client/:/app/
build:
context: ./client
ports:
- "3000:3000"
server:
volumes:
- /app/node_modules
- ./server/:/app
build:
context: ./server
ports:
- "8000:8000"
depends_on:
- mysql_db
mysql_db:
container_name: pirosquare_mysql_db
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- "3307:3306"
restart: always
volumes:
- ./server/db/mysql:/var/lib/mysql
- ./db/utf8.cnf:/etc/mysql/conf.d/utf8.cnf
# init.sql 경로 :
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
command: >
bash -c "chmod 644 /etc/mysql/conf.d/*.cnf && /entrypoint.sh mysqld"