-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
45 lines (45 loc) · 1012 Bytes
/
docker-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
version: "3"
services:
app: #app docker command place
build:
context: .
ports:
- 5000:5000 #localhost 5000port docker5000port connection
tty: true #Start virtual terminal
volumes: #Store data on the physical host
- ${PWD}:/app
working_dir: /app #Designated work folder
networks: #Set up a network group
- default
command:
- npm
- start
serveo: #serveo docker command place
image: node:latest #use image
volumes:
- ${PWD}:/app
working_dir: /app
command:
- bash
- script/serveo.sh
networks:
- default
db:
image: mysql:5.7.24
ports:
- 3306:3306
volumes:
- ./dump:/docker-entrypoint-initdb.d
networks:
- default
environment:
MYSQL_DATABASE: myDb
MYSQL_ROOT_PASSWORD: root
phpmyadmin:
image: phpmyadmin/phpmyadmin
links: #Connected to the docker virtual machine
- db
ports:
- 8000:80
environment:
PMA_HOST: db