One major change in this release is to make it easier to use the image in a docker compose file.
Breaking change
Instead of loading the app settings with
--env METEOR_SETTINGS="$(<~/meteor-app.json)",
now the settings file should be mounted with
-v /path/to/custom/config.json:/usr/share/skope-web-app/app-settings.json.
New app settings options
{
"public": {
// This is now fixed because of reverse-proxying in Meteor app.
"elasticEndpoint": "elastic"
},
"server": {
// This is where the reverse-proxy would actually send the query.
"elasticEndpoint": "http://elasticsearch:9200"
}
}
Example docker compose clause
webapp:
image: openskope/web-app:0.0.11
volumes:
- web-app-settings.json:/usr/share/skope-web-app/app-settings.json
env_file:
- web-app.env
ports:
- "3000:3000"
networks:
- openskope
depends_on:
- elasticsearch
docker run --detach \
--restart always \
--name skope-webapp \
--network=apps-bridge \
--env METEOR_SETTINGS="$(<~/meteor-app.json)" \
--env MONGO_URL="mongodb://mongodb/skope-webapp" \
--env PORT=3000 \
--publish 8080:3000 \
--env ROOT_URL="http://localhost:8080/app" \
openskope/web-app:<TAG>
~/meteor-app.json{
"public": {
"elasticEndpoint": "//localhost:9200"
}
}
Content type
Image
Digest
Size
217.3 MB
Last updated
over 8 years ago
docker pull openskope/web-app:staging