orion-server icon indicating copy to clipboard operation
orion-server copied to clipboard

Add a Dockerfile directly in the project

Open sharkoz opened this issue 5 years ago • 1 comments

This allows to build automatically images from the source repo, and to offer pre-built images to users. After merging, you can add the repo to docker hub for automated building, like I did there : https://cloud.docker.com/repository/docker/cosme/orion-server This provides the best experience for users.

sharkoz avatar Aug 30 '19 15:08 sharkoz

This should be ready to merge. The image is self contained and can be built on docker hub. Example : https://cloud.docker.com/repository/docker/cosme/orion-server

It can be deployed in compose like this : orion-server: restart: always image: cosme/orion-server environment: - DATABASE_HOST=orion-db - DATABASE_PORT=3306 - DATABASE_NAME=orion - DATABASE_USER=root - DATABASE_PASSWORD=orion depends_on: - orion-db

Or : docker run --restart always -e DATABASE_HOST=orion-db -e DATABASE_PORT=3306 -e DATABASE_NAME=orion -e DATABASE_USER=root -e DATABASE_PASSWORD=orion cosme/orion-server

sharkoz avatar Sep 02 '19 09:09 sharkoz