forked from BAWES-Universe/studenthub-staff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.19 KB
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: '2.6'
services:
app:
#container_name: plugn-dashboard-ionic
image: node:14-alpine
#build: .
environment:
- BRANCH=grid
command: sh -c "npm install -g @ionic/cli && npm install -f && ionic serve --configuration=docker --host=0.0.0.0"
# --host=127.0.0.0 --port=8100
expose:
- 8100
ports:
- 8100:8100
extra_hosts:
- "localhost:127.0.0.0"
- "localhost:0.0.0.0"
working_dir: /app
volumes:
- ./:/app
- ~/.gradle:/root/.gradle
production:
#container_name: plugn-dashboard-ionic
image: node:14-alpine
#build: .
environment:
- BRANCH=grid
command: sh -c "npm install -g @ionic/cli && npm install -f && npm run build:production --host=0.0.0.0"
# --host=127.0.0.0 --port=8100
expose:
- 8100
ports:
- 8100:8100
extra_hosts:
- "localhost:127.0.0.0"
- "localhost:0.0.0.0"
working_dir: /app
volumes:
- ./:/app
- ~/.gradle:/root/.gradle
#deploy:
# image: nginx:alpine
# command: sh -c "cp /app/www /usr/share/nginx/html"
# working_dir: /app
# volumes:
# - ./:/app
# ports:
# - 80:80