-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 1.05 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.2'
services:
personalpage-vuejs:
build:
context: .
dockerfile: docker/vuejs/Dockerfile
image: personalpage-vuejs
container_name: personalpage-vuejs
volumes:
- type: bind
source: ./vuejs/
target: /usr/share/app
ports:
- "9001:9001"
working_dir: /usr/share/app
command: "bash ./bin/startup.sh"
logging:
options:
max-size: "200k"
max-file: "10"
restart: always
vuejs-build:
build:
context: .
dockerfile: docker/vuejs/Dockerfile
image: sensorbox-vuejs
container_name: sensorbox-vuejs
volumes:
- type: bind
source: ./vuejs/
target: /usr/share/app
command: "npm run build"
server:
image: sensorbox-nodejs
volumes:
- type: bind
source: ./vuejs/dist/
target: /usr/share/app/dist
- type: bind
source: ./server/
target: /usr/share/app
ports:
- "8989:8989"
working_dir: /usr/share/app
command: "bash ./server.sh"
restart: always