forked from traP-jp/Shiika-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
47 lines (43 loc) · 924 Bytes
/
compose.yaml
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
networks:
default:
services:
mysql:
image: mysql:8.0.28
container_name: mysqldb
hostname: mysqldb
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: password
TZ: Asia/Tokyo
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
expose:
- 3306
networks:
- default
ports:
- 3306:3306
volumes:
- mysql:/var/lib/mysql
- ./mysql.cnf:/etc/mysql/conf.d/mysql.cnf
- ./script:/docker-entrypoint-initdb.d
adminer:
image: adminer:latest
ports:
- 8081:8080
environment:
ADMINER_DEFAULT_SERVER: mysql
networks:
- default
shiika:
build: .
ports:
- "8080:8080"
working_dir: /src
command: "go run main.go login.go kaminoku.go simonoku.go user.go model.go"
tty: true
depends_on:
- mysql
networks:
- default
volumes:
mysql: