-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 988 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
43
44
version: '3'
services:
tarim:
container_name: tarim
build: ./tarim
ports:
- "5000:5000"
volumes:
- "./tarim:/usr/src/app"
tty: true
environment:
TZ: Asia/Tokyo
links:
- db:db
db:
image: mysql:8.0
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: tarim
MYSQL_USER: Tarim
MYSQL_PASSWORD: Tarim123
MYSQL_ROOT_PASSWORD: Tarim123
TZ: 'Asia/Tokyo'
volumes:
- ./docker/db/data:/var/lib/mysql
- ./docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- ./docker/db/sql:/docker-entrypoint-initdb.d
networks:
- default
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
ports:
- 8000:80
environment:
MYSQL_USER: Tarim
MYSQL_PASSWORD: Tarim123
MYSQL_ROOT_PASSWORD: Tarim123