Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: production docker images. #36

Merged
merged 15 commits into from
Dec 23, 2019
Merged

WIP: production docker images. #36

merged 15 commits into from
Dec 23, 2019

Conversation

epugh
Copy link
Member

@epugh epugh commented Dec 2, 2019

Description

This is based on a PR that @synhershko opened..

Motivation and Context

Provide better production install steps for Quepid, for folks who want to run it, not build it!

How Has This Been Tested?

So far just manually. Going to set up a Digital Ocean VPS to test out the steps.

Types of changes

  • [] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • [] I have added tests to cover my changes.
  • All new and existing tests passed.

@synhershko
Copy link

synhershko commented Dec 2, 2019

💪

FWIW this is our docker-compose:

version: '3'   # on CircleCI the version and services cause build to puke.
services:
  mysql:
    container_name: quepid_db
    image: mysql:5.6.37
    ports:
      - 3306:3306
    environment:
      - MYSQL_ROOT_PASSWORD=password

  redis:
    container_name: quepid_redis
    image: redis
    ports:
      - 6379:6379

  app:
    container_name: quepid_app
    #helpful for quicker dev iterations
    #build:
    #  context: .
    #  dockerfile: Dockerfile
    image: bigdataboutique/quepid:latest
    environment:
      - PORT=3000
      - RACK_ENV=production
      - RAILS_ENV=production
      - DB_ADAPTER=mysql2
      - DB_HOST=mysql
      - DB_USERNAME=root
      - DB_PASSWORD=password
      - DB_NAME=quepid
      - REDIS_URL=redis://redis:6379/1
      - FORCE_SSL=false
      - MAX_THREADS=2
      - WEB_CONCURRENCY=2
      - SECRET_KEY_BASE=some_value_needed_here
    #helpful for quicker dev iterations
    #volumes:
    #  - .:/srv/app
    ports:
      - 3000:3000
    links:
      - mysql
      - redis
    depends_on:
      - mysql
      - redis

@epugh
Copy link
Member Author

epugh commented Dec 2, 2019 via email

@epugh epugh mentioned this pull request Dec 3, 2019
5 tasks
@epugh epugh merged commit 3d9ed92 into master Dec 23, 2019
@nathancday nathancday deleted the pr/33 branch March 13, 2020 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants