-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
47 lines (45 loc) · 1.13 KB
/
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
services:
akane-next:
build:
context: .
dockerfile: ./docker/akane-next/Dockerfile
target: development
args:
DATABASE_URL: "mysql://root@db:3306/akane"
MAPBOX_MAP_STYLE: "mapbox://styles/nenrin/cm77whskd00sl01reh909h23j"
MAPBOX_ACCESS_TOKEN: "pk.eyJ1IjoibmVucmluIiwiYSI6ImNtNzV1d3hoNTBpanoya3B2d3N0cGNtaTAifQ.8f7ecF34J0Zj0gdDrmaaVA"
init: true
ports:
- "3800:3000"
- "5555:5555" # for prisma studio
develop:
watch:
- action: sync
path: ./packages/akane-next
target: /app/packages/akane-next
ignore:
- node_modules
- .next
- action: rebuild
path: package.json
environment:
DATABASE_URL: "mysql://root@db:3306/akane"
depends_on:
- db
nginx:
build:
context: docker/nginx
dockerfile: ./Dockerfile
ports:
- "443:443"
depends_on:
- akane-next
db:
image: mysql:8.4
environment:
MYSQL_DATABASE: akane
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
ports:
- "3306:3306"
volumes:
- ./tmp/mysql:/var/lib/mysql