-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (33 loc) · 938 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
version: "3.5"
services:
app:
# service name
build: . # build from Dockerfile
volumes:
- "./:/usr/src/app"
#- /usr/src/app/node_modules # Remove this if you have pure JS dependencies
command: sh -c "[ ! -f .env.local ] && cp .env.example .env.local; npm install; npx sequelize-cli db:migrate; npx sequelize-cli db:seed:all && npm run dev"
ports:
- 3000:3000
db:
container_name: db-server
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: boilerplate
MYSQL_USER: admin
MYSQL_PASSWORD: password
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8000:80
environment:
- PMA_HOST=db
depends_on:
- db
volumes:
db_data: