-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.85 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3"
services:
web-scratch:
container_name: scratch-gui
tty: true
build:
context: scratch
dockerfile: Dockerfile
ports:
# - 8601:8601 # ホストマシンのポート8000を、docker内のポート8000に接続する
# - 8073:8073
- 8601:8601
#- "127.0.0.1:8601:8601"
volumes:
- ./scratch/:/src:cached
- node_module1:/scratch/scratch-gui/node_modules/
- node_module2:/scratch/scratch-vm/node_modules/
line-fastapi:
container_name: line_FastAPI
tty: true
build:
context: line_fastAPI/
dockerfile: Dockerfile
ports:
- 8000:8000 # ホストマシンのポート8000を、docker内のポート8000に接続する
volumes:
- ./line_fastAPI/:/src:cached
scratch-db:
container_name: scratch-db
tty: true
build:
context: scratch-db/
dockerfile: Dockerfile
ports:
- 8001:8001
volumes:
- ./scratch-db/:/src:cached
db:
image: mysql:8.0
platform: linux/x86_64 # M1 Macの場合必要
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' # rootアカウントをパスワードなしで作成
MYSQL_DATABASE: 'line_api' # 初期データベースとしてdemoを設定
TZ: 'Asia/Tokyo' # タイムゾーンを日本時間に設定
volumes:
- ./my.cnf:/etc/mysql/conf.d/my.cnf
- mysql_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password # MySQL8.0ではデフォルトが"caching_sha2_password"で、ドライバが非対応のため変更
ports:
- 33306:3306
volumes:
mysql_data:
node_module1:
node_module2: