-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 967 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
version: '3'
services:
db:
image: mysql:8.0
container_name: 'lt-db'
volumes:
- ./mysql/db:/docker-entrypoint-initdb.d # 初期データ
- ./mysql/conf:/etc/mysql/conf.d # 設定ファイル
- ./mysql/data:/var/lib/mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_DATABASE: khcoder
MYSQL_USER: khcoder
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: root
TZ: 'Asia/Tokyo'
ports:
- '3306:3306'
restart: always
khcoder:
container_name: 'khcoder'
build:
context: .docker
dockerfile: khcoder.dockerfile
ports:
- '3333:3333'
environment:
DISPLAY: $DISPLAY
volumes:
- './KHCoder:/KHCoder'
- '$HOME/.Xauthority:/root/.Xauthority'
command: xeyes
twitter-py:
container_name: 'twitter-py'
build:
context: .docker
dockerfile: twitter-py.dockerfile