-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1014 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3'
networks:
hipages1:
driver: bridge
services:
database:
image: mysql:5.6
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: hipages
MYSQL_DATABASE: hipages
ports:
- "3306:3306"
expose:
- '3306'
volumes:
- ./docker/mysql:/docker-entrypoint-initdb.d
networks:
- hipages1
server:
depends_on:
- database
entrypoint: ["npm", "start"]
environment:
NODE_ENV: development
image: node:10.15-alpine
links:
- database:database
ports:
- "8080:8080"
volumes:
- ./server:/opt/server
working_dir: /opt/server
networks:
- hipages1
ui:
depends_on:
- server
entrypoint: ["npm", "start"]
environment:
NODE_ENV: development
image: node:10.15-alpine
ports:
- "3000:3000"
volumes:
- ./ui:/opt/ui
working_dir: /opt/ui
networks:
- hipages1