Comments (3)
Hi @Habak1. How is the subdomain pointed to the container? You'll want to make sure it's using at least HTTP 1.1 and allows for connection upgrades for websockets. There's an example available in the readme for nginx.
location ^~ /goaccess {
resolver 127.0.0.11 valid=30s;
set $upstream_goaccess goaccess;
proxy_pass http://$upstream_goaccess:7889/;
proxy_connect_timeout 1d;
proxy_send_timeout 1d;
proxy_read_timeout 1d;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
In regards to the different ports, I believe you want to run multiple instances of his container on different ports? This should be possible through native docker arguments. The README provides a sample command to map TCP port 7889 to the container port of 7889. This can be changed to suit your needs. For instance, you can use the below to expose the container on port 8080 of the host:
docker run --name goaccess -p 8080:7889 -v /path/to/host/nginx/logs:/opt/log -v /path/to/goaccess/storage:/config -d gregyankovoy/goaccess
from docker-goaccess.
Thank you very much for the tips. I will try the days to understand and implement it and then report back.
from docker-goaccess.
Hi Greg,
thank you very much for the hints. Now everything works fine.
from docker-goaccess.
Related Issues (15)
- How to use this image? HOT 4
- NGINX: Keep docker logs AND goaccess
- Persist data on docker-volume HOT 3
- error log permission denied HOT 1
- Support for read-only volumes HOT 2
- will be update for new version ? HOT 1
- Persistent storage of statistics? HOT 4
- PUID and PGID for docker compose
- Handle logrotate files? HOT 2
- Not updating in real-time HOT 4
- update to 1.4 HOT 2
- Some questions about your Dockerfile HOT 2
- Update to 1.4.4/1.4.5
- Timezone not used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-goaccess.