Created
August 10, 2021 00:52
-
-
Save henrymazza/14e4971457b3446fba68b91a11c2fccd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
services: | |
sidekiq: | |
depends_on: [ redis, db, bg_sync ] | |
image: nemo:x86 | |
platform: linux/amd64 | |
web: | |
depends_on: [ redis, db, bg_sync ] | |
scale: 0 | |
image: nemo:x86 | |
platform: linux/amd64 | |
web_support: | |
depends_on: [ redis, db, bg_sync ] | |
image: nemo:x86 | |
platform: linux/amd64 | |
# This is for running rspec and other utilities that don't depend on | |
# chromedriver and similar. 100% ARM. | |
arm_web: # ARM | |
depends_on: [ redis, db, bg_sync ] | |
# image: nemo_web | |
build: | |
context: . | |
dockerfile: Dockerfile.arm | |
args: | |
- online_store_user_password=$ONLINE_STORE_USER_PASSWORD # loaded from .env | |
working_dir: /nemo/nemo | |
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" | |
expose: | |
- '3000' | |
volumes: | |
- bg_sync:/nemo | |
- arm_bundle_cache:/bundle | |
env_file: | |
- .env | |
environment: | |
- VIRTUAL_HOST=onlinestore.dev-godaddy.com,*.onlinestore.dev-godaddy.com,*.dev-mysimplestore.com | |
- DOCKER_DB_HOST=db | |
- DOCKER_DB_PASSWORD=password | |
- DOCKER_REDIS_HOST=redis | |
- DUMP_SCHEMA_AFTER_MIGRATION=true | |
- RSPEC_RETRY_DISABLED=true | |
- BLOBBY_API_KEY=123jlkdsf982v987234cds98DDF | |
- BUNDLE_GEMFILE=/nemo/nemo/Gemfile | |
- SIDEKIQ_ENABLED=true | |
tty: true | |
stdin_open: true | |
volumes: | |
arm_bundle_cache: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment