mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Add docker-compose.yml for production use.
Fix host address in environment.js. Add production use in nginx config.
This commit is contained in:
parent
eb1c3448fa
commit
cb0c40aa61
3 changed files with 40 additions and 3 deletions
|
@ -17,7 +17,7 @@ module.exports = function(environment) {
|
|||
// Here you can pass flags/options to your application instance
|
||||
// when it is created
|
||||
|
||||
API_HOST: '',
|
||||
API_HOST: 'http://localhost:80',
|
||||
UPDATE_RATE: 200,
|
||||
},
|
||||
|
||||
|
@ -25,7 +25,7 @@ module.exports = function(environment) {
|
|||
'default-src': "'none'",
|
||||
'script-src': "'self' 'unsafe-eval'",
|
||||
'font-src': "'self'",
|
||||
'connect-src': "'self' 192.168.99.100:80",
|
||||
'connect-src': "'self' 192.168.99.100:80 localhost:80",
|
||||
'img-src': "'self'",
|
||||
'style-src': "'self' 'unsafe-inline'",
|
||||
'media-src': "'self'"
|
||||
|
@ -60,7 +60,7 @@ module.exports = function(environment) {
|
|||
}
|
||||
|
||||
if (environment === 'production') {
|
||||
ENV.baseURL = '/technical/';
|
||||
|
||||
}
|
||||
|
||||
return ENV;
|
||||
|
|
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
nginx:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ./nginx-conf.d/:/etc/nginx/conf.d/
|
||||
- ./dist/:/www/
|
||||
links:
|
||||
- orion
|
||||
- ember
|
||||
ports:
|
||||
- "80:80"
|
||||
|
||||
ember:
|
||||
image: danlynn/ember-cli
|
||||
volumes:
|
||||
- .:/myapp
|
||||
command: build -prod
|
||||
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
command: --smallfiles --nojournal
|
||||
|
||||
orion:
|
||||
image: fiware/orion
|
||||
links:
|
||||
- mongo
|
||||
command: -dbhost mongo
|
||||
|
||||
playback:
|
||||
image: acs/playback
|
||||
links:
|
||||
- orion
|
||||
command: orion:1026 m1_S1_ElectricalGrid_data.txt
|
|
@ -28,6 +28,11 @@ server {
|
|||
proxy_pass http://orion:1026/;
|
||||
}
|
||||
|
||||
# website
|
||||
location / {
|
||||
root /www;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
root /usr/share/nginx/html;
|
||||
|
|
Loading…
Add table
Reference in a new issue