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

Dockerize project #39

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Dockerize project #39

wants to merge 8 commits into from

Conversation

Aleksei12942
Copy link
Collaborator

No description provided.

Dockerfile Outdated
@@ -0,0 +1,18 @@
FROM ruby:2.5.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker/app/Dockerfile

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ruby:2.5.1-with-nodejs

Dockerfile Outdated
COPY Gemfile Gemfile.lock ./
RUN bundle install

COPY . .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing:

  • assets precompile
  • git cloning
  • configs

Dockerfile Outdated

COPY . .

LABEL maintainer="Aleksei Lazarenko <[email protected]>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to top

@@ -3,11 +3,17 @@

Sidekiq.configure_client do |config|
# accepts :expiration (optional)
config.redis = {
url: 'redis://redis:6379'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ENV

ports:
- "6379:6379"
volumes:
- 'redis:/data'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/data:/var/data/redis

image: 'postgres:10.5'
restart: always
volumes:
- 'postgres:/var/lib/postgresql/data'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/data:/var/lib/postgresql/data

- "6379:6379"
volumes:
- 'redis:/data'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nginx?
https?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

letsencrypt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nginx-le

volumes:
- 'redis:/data'

website:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app

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