solidus Docker & Self-Hosted Deployment

GitHub

Solidus, the open-source eCommerce framework for industry trailblazers.

RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/solidus_storefront-0.1.0
2. Docker Run (1-Click Launch) docker run -d --name solidus --restart always solidus_storefront-0.1.0
3. Podman Run podman run -d --name solidus --restart always solidus_storefront-0.1.0
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/solidus_storefront-0.1.0:latest
5. ORAS Pull (OCI Artifact) oras pull solidus_storefront-0.1.0
6. Compose Deployment docker compose up -d
storefront/docker-compose.yml
Download .yml
version: '3.7'

services:
  mysql:
    image: mysql:8.0
    command: --default-authentication-plugin=mysql_native_password
    environment:
      MYSQL_ROOT_PASSWORD: password
    volumes:
      - mysql:/var/lib/mysql:cached

  postgres:
    image: postgres:13.2
    environment:
      POSTGRES_USER: root
      POSTGRES_PASSWORD: password
      POSTGRES_DB: solidus_storefront_solidus_test
    volumes:
      - postgres:/var/lib/postgresql/data:cached

  app:
    platform: linux/amd64
    build:
      context: .dockerdev
      dockerfile: Dockerfile
      args:
        RUBY_VERSION: "2.7.2"
        PG_VERSION: 13
        NODE_VERSION: 14
        BUNDLER_VERSION: 1.17.3
    image: solidus_storefront-0.1.0
    command: bash -c "(bundle check || bundle) && tail -f /dev/null"
    environment:
      DB_USERNAME: root
      DB_PASSWORD: password
      DB_ALL: "1"
      DB_MYSQL_HOST: mysql
      DB_POSTGRES_HOST: postgres
      HISTFILE: "/home/solidus_storefront_user/history/bash_history"
      MYSQL_HISTFILE: "/home/solidus_storefront_user/history/mysql_history"
    ports:
      - "${SANDBOX_PORT:-3000}:${SANDBOX_PORT:-3000}"
    volumes:
      - .:/home/solidus_storefront_user/app:delegated
      - bundle:/home/solidus_storefront_user/gems:cached
      - history:/home/solidus_storefront_user/history:cached
      - .dockerdev/.psqlrc:/home/solidus_storefront_user/.psqlrc:cached
    tty: true
    stdin_open: true
    tmpfs:
      - /tmp
    depends_on:
      - mysql
      - postgres

volumes:
  bundle:
  history:
  postgres:
  mysql: