https://github.com/ericvolp12/sails-docker
Playing around with sailsjs inside of docker containers.
https://github.com/ericvolp12/sails-docker
docker docker-compose nodejs sailsjs
Last synced: about 1 year ago
JSON representation
Playing around with sailsjs inside of docker containers.
- Host: GitHub
- URL: https://github.com/ericvolp12/sails-docker
- Owner: ericvolp12
- License: mit
- Created: 2017-08-26T09:03:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-01T20:46:54.000Z (about 2 years ago)
- Last Synced: 2025-04-06T05:44:12.596Z (about 1 year ago)
- Topics: docker, docker-compose, nodejs, sailsjs
- Language: JavaScript
- Size: 8.29 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sails Docker Application
[](https://travis-ci.org/ericvolp12/sails-docker) [](https://coveralls.io/github/ericvolp12/sails-docker?branch=master)
This is a sample application for running a sails instance inside of docker containers. I've provided an ecosystem using MongoDB, Redis, Google's Oauth2, and SailsJS.
## Installation
To run this application, you need to have `docker` and `docker-compose` installed on your local machine.
The `conf/nginx.conf` item is for running a reverse proxy on your machine so you may listen on port 80. My development environment uses local docker containers and a CloudFlare https route pointing to my dev machine.
The `.env` file has been ignored from here on out as it stores secrets, it should have the following fields:
```
# Set Sails environment
MONGO_HOST=db
REDIS_HOST=redis
NPM_CONFIG_LOGLEVEL=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
DOMAIN=
SESSION_SECRET=
```
To get started, run `docker-compose build`, then run `docker-compose run -d` to create the machines and detach from the application container.
## License
This code has been developed under the MIT License as follows below:
MIT License
Copyright (c) 2017 Eric Volpert
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.