Microservice Nginx + Docker deployment and proxy-pass help
MIT License
Proxify your Docker :)
This project allow you to generate nginx proxypass configuration based on your docker container.
It can also be used to quickly update a container to the newest version of the image tag
Minimal compose
version: "3.5"
services:
bifrost:
image: xrobert35/bifrost2:latest
container_name: bifrost
privileged: "true"
ports:
- "4080:4080" #website
- "4081:4081" #websocket
- "80:80" #nginx
volumes:
- /opt/bifrost:/opt/bifrost #bifrost data
- /var/run/docker.sock:/var/run/docker.sock #give access to docker
- /opt/docker:/opt/docker #your docker management folder
restart: always
Bifrost include a website for configuration and come when an nginx server that you will update thanks to the website
The website is launched on 4080 and will list all your container. You can than edit proxy configuration for some of them and click on "update proxy" the configuration will be created in "/etc/nginx/conf.d/default.conf" and the nginx configuration will be automatically realoded
DOCKER_REPO_KEYS contain a list of private repository key who will be used to update container
environment:
- DOCKER_REPO_KEYS=repo-name1:login|mdp;repo-name2:login|mdp
UI for docker, allowing you to check logs, start, update, remove, restart containers
UI for nginx allowing you to add some proxy
Online Editor allowing you to manage your compose, and also up and down stacks
Simple upload interface, allowing you to drop file (cool for dumps etc...)
This projet has been created to help developers when creating micro-service application, some of the microservice can for exemple run on a docker container but you will still need to launch some of them on your favorite IDE for debug purpose. Thanks to this projet you will be able to easily switch from IDE to container.
Back
There's a vscode debug launcher or
npm run server:run
Front
npm start
## How to build
### The project
npm run build
### Docker image
build the project first
docker build -t xrobert35/bifrost2 .