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.
This commit is contained in:
parent
e163c9e245
commit
c339c749ff
4 changed files with 50 additions and 5 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: '',
|
||||
ENV.APP.API_HOST = 'http://nginx: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' nginx:80",
|
||||
'img-src': "'self'",
|
||||
'style-src': "'self' 'unsafe-inline'",
|
||||
'media-src': "'self'"
|
||||
|
@ -44,7 +44,7 @@ module.exports = function(environment) {
|
|||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||
|
||||
ENV.APP.API_HOST = 'http://192.168.99.100:80';
|
||||
//ENV.APP.API_HOST = 'http://nginx:80';
|
||||
}
|
||||
|
||||
if (environment === 'test') {
|
||||
|
@ -60,7 +60,7 @@ module.exports = function(environment) {
|
|||
}
|
||||
|
||||
if (environment === 'production') {
|
||||
ENV.baseURL = '/technical/';
|
||||
//ENV.baseURL = '/technical/';
|
||||
}
|
||||
|
||||
return ENV;
|
||||
|
|
|
@ -4,8 +4,16 @@ nginx:
|
|||
- ./nginx-conf.d/:/etc/nginx/conf.d/
|
||||
links:
|
||||
- orion
|
||||
|
||||
ember:
|
||||
image: danlynn/ember-cli
|
||||
volumes:
|
||||
- ./:/myapp/
|
||||
links:
|
||||
- nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
- "4200:4200"
|
||||
command: serve -dev
|
||||
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
|
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
|
||||
location / {
|
||||
root /www;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
root /usr/share/nginx/html;
|
||||
|
|
Loading…
Add table
Reference in a new issue