https://github.com/apiqcms/kms_models_seo_docker
Empty Rails app with APIQ Core + Models + SEO
https://github.com/apiqcms/kms_models_seo_docker
Last synced: 3 months ago
JSON representation
Empty Rails app with APIQ Core + Models + SEO
- Host: GitHub
- URL: https://github.com/apiqcms/kms_models_seo_docker
- Owner: apiqcms
- Created: 2017-08-09T09:12:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T12:29:02.000Z (over 8 years ago)
- Last Synced: 2025-01-15T10:14:01.442Z (about 1 year ago)
- Language: HTML
- Size: 2.83 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Just pull this image, link with Postgres container, create db and migrate in running container and that's it.
Or let Docker Compose to make this job done (https://github.com/apiqcms/kms_docker/blob/master/docker-compose.yml):
```
version: '3'
services:
db:
image: postgres
web:
image: webgradus/kms
command: bundle exec rails s -p 3000 -b '0.0.0.0'
environment:
SECRET_TOKEN: abc
RAILS_SERVE_STATIC_FILES: 'true'
volumes:
- .:/kms
ports:
- "3000:3000"
depends_on:
- db
```
Environment variables you should care about are:
* `SECRET_TOKEN` - for secrets.yml
* `RAILS_SERVE_STATIC_FILES` - for serving static files by Rails
* `DATABASE` - database name prefix. Entire name is ENV['DATABASE'] + '_production'
* `POSTGRES_PASSWORD` - which is used for "Postgres" image