-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
42 lines (40 loc) · 1017 Bytes
/
docker-compose.yml
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
40
41
42
services:
web:
build:
context: ./ccm_web/
dockerfile: ./Dockerfile
args:
- PORT=4000
target: base
working_dir: /base/
environment:
- PORT=4000
- NODE_ENV=development
env_file: .env
ports:
- 4000:4000
- 9229:9229
volumes:
- ./ccm_web/server:/base/server:z
- ./ccm_web/client:/base/client:z
# Allows for inspection/deletion of webpack bundles
- ./ccm_web/dist:/base/dist:z
command: npm run dev
container_name: ccm_web
depends_on:
- database
database:
image: mysql:8-oracle
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci','--socket=/tmp/mysql.sock']
environment:
- MYSQL_ROOT_PASSWORD=ccm_root_pw
- MYSQL_HOST=ccm_db
- MYSQL_TCP_PORT=3306
- MYSQL_DATABASE=ccm
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
ports:
- 5400:3306
volumes:
- ./.mysql_data:/var/lib/mysql
container_name: ccm_db