forked from code-kakitai/code-kakitai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 870 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
45
46
version: "3"
volumes:
db-store:
driver: local
services:
# データベース
db:
image: mysql:8.0.35-debian
volumes:
- type: volume
source: db-store
target: /var/lib/mysql
volume:
nocopy: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: code_kakitai
TZ: Asia/Tokyo
MYSQL_ALLOW_EMPTY_PASSWORD: 1
LANG: C.UTF-8
command: --collation-server=utf8mb4_general_ci
# redis
redis:
image: redis:6.0-alpine3.18
ports:
- 6379:6379
# バックエンドサーバー
app:
build:
context: .
dockerfile: ./ops/docker/app/Dockerfile
tty: true
ports:
- "8080:8080"
volumes:
- type: bind
source: ./
target: /data
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- db
- redis