- Docker
- Docker Compose
-
Ruby
- 2.6.3
-
Ruby on Rails
- 5.2
-
Node.js
- 12.x (LTS)
-
Middlewares
- nginx 1.17
- PostgreSQL 11.4
- redis 5.0
-
Copy compose file
$ cp docker-compose.prod.yml docker-compose.yml
-
Build images
$ docker-compose build
-
Create environment file as follows
$ cat .env UMAKADATA_DATABASE_USERNAME=umakadata UMAKADATA_DATABASE_PASSWORD=(CHANGEME) UMAKADATA_REDIS_HOST=redis SIDEKIQ_USER=admin SIDEKIQ_PASSWORD=(CHANGEME) UMAKADATA_MAILER_DEFAULT_URL_HOST=(YOUR_URL_HOST) # Recipient of inquary mail [email protected] # Sender of crawler notification [email protected] # Recipient of crawler notification [email protected] # umakadata uses SendGrid as MTA (Get API key on https://sendgrid.com) UMAKADATA_SENDGRID_API_KEY= # (optional) set if you would like to use reCAPTCHA (Get API keys on https://www.google.com/recaptcha/about/) UMAKADATA_RECAPTCHA_SITE_KEY= UMAKADATA_RECAPTCHA_SECRET_KEY=
-
Install dependencies
$ docker-compose run --rm app bundle install $ docker-compose run --rm app yarn install
-
Database initialization
$ docker-compose run --rm app rails db:create $ docker-compose run --rm app rails db:migrate
-
Start application
$ docker-compose up -d