-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathdocker-compose.yml
51 lines (45 loc) · 1.67 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
version: '3'
services:
ts-compiler:
image: harmish/typescript
volumes:
- ./src/frontend/ts:/workspace
- ./src/frontend/js:/output
command: "tsc --project /workspace --outDir /output --watch --pretty true"
mysql-server:
image: mysql:5.7
hostname: mysql-server
environment:
MYSQL_ROOT_PASSWORD: userpass
volumes:
- ./db/dumps:/docker-entrypoint-initdb.d
- ./db/data:/var/lib/mysql
networks:
- app-fullstack-net
mysql-admin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mysql-server
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: userpass
networks:
- app-fullstack-net
depends_on:
- mysql-server
ports:
- "8001:80"
node-backend:
image: abassi/nodejs-server:10.0-dev
volumes:
- ./src/backend:/home/node/app/src
- ./src/frontend:/home/node/app/static
networks:
- app-fullstack-net
depends_on:
- mysql-server
ports:
- "8000:3000"
command: nodemon /home/node/app/src/index.js
networks:
app-fullstack-net:
driver: bridge