Skip to content

Run with NPM in docker container #9

@FlyingPersian

Description

@FlyingPersian

Hello,

How do I run this when nginx proxy manager is running in a docker container?

I'm binding a folder into /etc/nginx/ and a data folder into /data. Within data, I created a file called http.conf in /data/nginx/custom added the following line to it (see here:

include /etc/nginx/cloudflare;

I added the file "cloudflare" to the folder I'm mounting to /etc/nginx/ like described in the instructions. I'm now struggling to create the cron tab to run the script. I found this, to setup a crontab, but it seems fairly complicated and I'm unsure whether it works or not.

After I setup everything, I connected to the sh shell of my container using portainer and ran the script, but I got this error:

nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory

Also, I'd prefer to have this happen in real time so that my NPM logs reflect the real IPs right away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions