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

Confused on log path #186

Open
dontaskdonttellme opened this issue Oct 2, 2024 · 3 comments
Open

Confused on log path #186

dontaskdonttellme opened this issue Oct 2, 2024 · 3 comments

Comments

@dontaskdonttellme
Copy link

dontaskdonttellme commented Oct 2, 2024

I am using Docker personal for windows, where I have NPM and Maria DB.

NPM is working properly, no issues.

However, I don't understand how to set this to make it read my NPM container log files.

  - /path/to/host/nginx/logs:/opt/log

I have spent a few hours searching and trying to understand how to handle that line, but I am totally stuck as to what to replace /path/to/host/nginx/logs with.

yes, I am new to docker, but I have 40 years in the IT field, and am stuck.

when I bash into my NPM instance from docker terminal, the logs are in

/data/logs/{logfiles}

but alas I don't how to point this app to that directory from the instance where Xavier's app is running.

Secondly, Xavier's app seems to only run on the terminal command line, instead of running on their own like NPM and MariaDB. How do I set this application to run without me going to the command line to start it each time?

Advice would be appreciated.
Thanks!

@xavier-hernandez
Copy link
Owner

Let's say you're using something similar to below. You would use something like "./data2/logs" . I don't really use docker under windows. It's been a while, but lets your using the "c:/npm/data," it would be again "c:/npm/data/logs".

services:
app:
image: 'docker.io/jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- ./data2:/data
- ./letsencrypt:/etc/letsencrypt

I need help understanding your second question. If you're using this app, it should be added to your docker-compose file.

Maybe you can supply your docker-compose file, and I can update it here with the possible changes.

Thanks.

@dontaskdonttellme
Copy link
Author

Let's say you're using something similar to below. You would use something like "./data2/logs" . I don't really use docker under windows. It's been a while, but lets your using the "c:/npm/data," it would be again "c:/npm/data/logs".

services: app: image: 'docker.io/jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' volumes: - ./data2:/data - ./letsencrypt:/etc/letsencrypt

I need help understanding your second question. If you're using this app, it should be added to your docker-compose file.

Maybe you can supply your docker-compose file, and I can update it here with the possible changes.

Thanks.

Thank you very much! Solved the log file issue.

here is my line (for anyone who might fine it useful)
volumes:
- ./data/logs:/opt/log

When I run the YLM file like this:
docker-compose -f logs2.yml up

I get what is in the attached screenshot below.
2024-10-03_10-16-29

Instead of it running in a container by itself, it runs only on the terminal command line and terminal is fully owned by this operation.

How do I change this to a self running container, not running on the terminal command line?

@xavier-hernandez
Copy link
Owner

Did you ever get this solved? Can I close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants