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

Docker deployment added. #196

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

Docker deployment added. #196

wants to merge 3 commits into from

Conversation

exesse
Copy link

@exesse exesse commented Aug 5, 2021

Hi!

I have created a new Dockerfile for easier deployment of the Lighterpack.

To tun everything in docker one would need to do something as simple as:

  • Create docker-compose.yml with the content below.
---
version: '3.9'
services:
        mongodb:
          image: mongo:5-focal
          container_name: mongodb
          expose:
            - "27017"
          volumes:
            - lighterpack:/data/mongodb
          logging:
            driver: "json-file"
            options:
                max-size: "5m"
                max-file: "10"
          restart: unless-stopped

          lighterpack:
            image: lp:0.0.1
            container_name: lighterpack
            expose:
              - "8080"
              - "3000"
            ports:
              - 8080:8080
              - 3000:3000
            restart: unless-stopped
...
  • Build an image:
sudo docker build -t lp:0.0.1 .
  • Adjust config\default.json to have "databaseUrl": "mongodb/lighterpack". Or create a local.json with adjusted value.
  • Deploy.
sudo docker-compose up -d

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.

1 participant