In this article you’ll know how to install APIQ CMS using Docker images.
During last month before going to a vacation, I spent some time on preparing Docker images containing boilerplate Ruby on Rails 5.1 apps packaged with APIQ as dependency. I came up with 3 images that might be useful: one containing just APIQ Core, the second containing APIQ Core (KMS) and APIQ Models and the third containing Core + Models + SEO extensions.
All these images could be found here: https://hub.docker.com/u/apiqcms/
Let’s go through the steps of installing APIQ CMS with Docker. Considering you already have Docker (and Docker Compose) installed locally, we’re going to define simple
version: '3' services: db: image: postgres environment: POSTGRES_PASSWORD: 'xyz' web: image: apiqcms/models_and_seo command: rails s -p 3000 -b '0.0.0.0' environment: SECRET_TOKEN: abc RAILS_SERVE_STATIC_FILES: 'true' DATABASE: apiq volumes: - .:/kms ports: - "3000:3000" depends_on: - db
So our installation will consist of Postgres database (
image: postgres) and Rails application containing APIQ Core, Models and SEO (
image: apiqcms/models_and_seo) extensions. Having this
docker-compose.yml file you could run:
$ docker-compose up
Next steps you may need are creating database and migrating, and that’s all - after this you should have APIQ instance running and ready to use.