Understanding Docker/Container setup

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Scotty
Posts: 35
Joined: Wednesday 28 November 2018 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Understanding Docker/Container setup

Post by Scotty »

I've just formatted my Pi's SD card to start again and I've now used the automatic install.

It worked well and dashticz is now running. I've never used docker before so it's all a little alien to me.

I'm just having an issue with the apache setup. I have additional scripts/directories that I used to run on apache but now I'm getting 403 forbidden errors if I try to access them.

I've checked file permissions, which look correct, so I guess it's some kind of ownership issue?

How can I resolve this?
Scotty
Posts: 35
Joined: Wednesday 28 November 2018 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Understanding Docker/Container setup

Post by Scotty »

Also, I'm trying to find the php.ini file. Where can I find this?

So confused!
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Understanding Docker/Container setup

Post by Lokonli »

Scotty wrote: Monday 13 April 2020 15:37 Also, I'm trying to find the php.ini file. Where can I find this?

So confused!
By the automatic install a Docker container with Apache and PHP is started.

You can open a console in container by executing the following in the Dashticz folder:

Code: Select all

make login
PHP looks for ini files in:
/usr/local/etc/php in the Docker container. There is no php.ini file.

And also /usr/local/etc/php/conf.d for additional ini files.

If you want to set additional php settings, then I guess you have to modify Dockerfile, and create a file in /usr/local/etc/php/conf.d in the Docker container.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Understanding Docker/Container setup

Post by Lokonli »

The 'normal' Apache server on your PI is running next to the Apache server in the Dashticz container.
Both use their own settings.
Scotty
Posts: 35
Joined: Wednesday 28 November 2018 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Understanding Docker/Container setup

Post by Scotty »

Got it, thank you.

For my use, I think I'll stick with the manual installation as it seems to be a little more flexible.

Thanks again for taking the time to explain.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest