-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.11 KB
/
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
47
48
49
50
51
52
53
54
55
56
name: shibaac
services:
frontend:
container_name: frontend
build:
context: .
target: dev
ports:
- 3000:3000
depends_on:
- mysql
command:
- /bin/sh
- -c
- |
npx prisma generate
npx prisma db push
npm run dev
env_file: .env
environment:
- NODE_ENV=development
- NEXT_TELEMETRY_DISABLED=1
volumes:
- .:/app
- /app/node_modules
- /app/.next
restart: unless-stopped
mysql:
image: mysql:8.0.32
ports:
- 3306:3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: shibaac
volumes:
- mysql-data:/var/lib/mysql
- ./schema.sql:/docker-entrypoint-initdb.d/db.sql
restart: unless-stopped
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: pma
ports:
- 8080:80
environment:
PMA_HOST: mysql
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: ""
UPLOAD_LIMIT: 300M
depends_on:
- mysql
restart: unless-stopped
volumes:
mysql-data: