Application to display logs from dockers
git clone [email protected]:dmarczydlo/react-starter.git
yarn
yarn start
Then application should work correctly on 3000
port in developer mode.
For correct work Docker Logger you have to serve docker.sock
as json file with CORS
. Nginx
is one of the options for that.
- Install nginx on your system
- Configure nginx like below:
server {
listen localhost:9000;
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
proxy_pass http://unix:/var/run/docker.sock:/;
}
}
If you do not want to install nginx please use dockers
docker-compose -f ./docker/docker-compose.yml up --build
Project include 2 different dockers:
- Nginx to serve
Docker Logger
on production mode. (port:8081
) - Nginx to serve
docker.sock
Current servers are defined in config.json
Examples:
[
{
"NAME": "Server test1",
"URL": "http://localhost:9000"
},
{
"NAME": "Server test2",
"URL": "http://localhost:9000"
}
]