NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.6k stars 2.62k forks source link

Installation Instructions are not clear #86

Closed johntdyer closed 3 years ago

johntdyer commented 5 years ago

so I think I need a little more info to install this. I currently have a nginx server running and I have certbot running to handle my certs. I would love to take this for a spin. So I have created a mysql database and now what? How do I migrate from a manual Ubuntu install to your tool ? What do I need to put in the data dir ? Do I point to a new Lets Encrypt folder ? It would be great ot have a walk through for this type of scenario since I imagine most people will have had nginx installed before they try this tool. Thanks and I look forward to trying this out once I'm able to get it installed correctly

jc21 commented 5 years ago

This project is primarily distributed as a Docker image. It already contains cerbot and nginx along with configuration specific for use with this application.

The reason I've done this containerization is to control the running environment - and not have to handle more issues relating to individuals setup.

I recommend installing Docker and referring to the Running instructions.

neil-bowers commented 5 years ago

@jc21 I have to agree with @johntdyer here - at least for the Raspberry Pi docker image.

The first part of the installation instructions references either Vanilla Docker or Docker compose, but the Raspberry Pi instructions are just for Vanilla Docker - fair enough.

What isn't clear from the Raspberry Pi instructions is that users need to install MySql/MariaDb on their own, whereas your example Docker Compose file contains both elements - this image, plus the requisite database.

jc21 commented 5 years ago

Installing mysql/maria on the pi host is not required, as the mariadb dockerhub image supports all those pi architectures - so does nginx-proxy-manager:latest as of a couple of months ago. However the example installation refers to jc21/mariadb-aria image which isn't multiarch and probably should be updated.

elRadix commented 5 years ago

so what's the correct database image to use with the appropriate settings in config.json for rpi3?

talondnb commented 5 years ago

There doesn't seem to be one, but please someone correct me if I'm wrong.

I've tried the linuxserver/mariadb one which is supposed to be 10.3 I believe, but I'm getting syntax issues during launch.

aitgelion commented 5 years ago

There doesn't seem to be one, but please someone correct me if I'm wrong.

I've tried the linuxserver/mariadb one which is supposed to be 10.3 I believe, but I'm getting syntax issues during launch.

I've the same problem with a Pi 3 and linuxserver/mariadb image.

error create tableauth(idint unsigned not null auto_increment primary key,created_ondatetime not null,modified_ondatetime not null,user_idint unsigned not null,typevarchar(30) not null,secretvarchar(255) not null,metajson not null,is_deletedint unsigned not null default '0') - ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json not null,is_deletedint unsigned not null default '0')' at line 1

talondnb commented 5 years ago

See here: https://github.com/jc21/nginx-proxy-manager/issues/146#issuecomment-533845196

aitgelion commented 5 years ago

See here: #146 (comment)

The proposed database image "yobasystems/alpine-mariadb:latest" worked perfectly. Thank you!