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

Add docker and docker-compse build #20

Closed
wants to merge 16 commits into from
Closed

Conversation

lfoppiano
Copy link
Owner

@lfoppiano lfoppiano commented Feb 17, 2022

This PR solves #18

Docker image

Build

docker build -t lfoppiano/supercon2:1.2 --file Dockerfile .

Run

docker run -rm -p 8080 -v ./supercon2/config-docker.yaml:/opt/service/supercon2/config.yaml:ro lfoppiano/supercon2:1.2

For connecting to mongodb is possible to connect directly to the mongodb IP (to be specified in config-docker.yaml), if this is not possible then it's recommended to use docker-compose.

Docker compose

The docker compose is going to mount the volume resources/mongo as /data/db in the container. And mapping the mongodb container with port 27018 (to avoid conflicts with the default mongodb port).

The configuration file supercon2/config-docker.yaml is also mapped in the supercon2 container /opt/service/supercon2/config.yaml

@lfoppiano lfoppiano added the enhancement New feature or request label Feb 17, 2022
@lfoppiano lfoppiano added this to the flagging workflow milestone Feb 17, 2022
@lfoppiano lfoppiano linked an issue Feb 17, 2022 that may be closed by this pull request
4 tasks
@lfoppiano lfoppiano self-assigned this Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker image
1 participant