FEATURE REQUEST: Wiki HOWTO #45
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks for your work. I'm new to docker and can't figure out how to pull your image (since its not in the docker registry). Can you provide some guidance (and maybe add it to the wiki for others)?
Thanks in advance
Here are the steps I took:
docker build --tag docker-flox:latest .
The container starts and I see "NOTICE: ready to handle connections" but I can't access the server using any of the addresses:
Here are my complete logs:
I found and switched to your mwalbeck/flox docker hub published image but I still get the same results as the above after adding my TMDB api KEY as environment variable
Hi,
There is actually a ready built image on Docker Hub here, https://hub.docker.com/r/mwalbeck/flox
I've been meaning to write a proper readme with usage instructions, I just haven't gotten around to it yet.
Firstly as a general note about docker images and specifying options, you will often see the option to configure images with environment variables, this allows you to configure the docker image when you run it without having to edit the build files. If you look in the entrypoint.sh file you can see a list of variables in the beginning those are the available environment variables that can be set at runtime. I'll get back to how to set them in a bit.
The second thing to take note of with this image is it doesn't actually have a webserver in it. It's only the php-fpm process that handles all the php stuff, so a separate webserver to actually access the application. The easiest way to put these things together is using docker-compose, where you can also specify any environment variables. So I can really recommend reading a bit about docker-compose and how to use it.
Here below is an example docker-compose file for setting this up. One thing to note is on the containers first run FLOX_DB_INIT should be set to true, that creates the database. Then you can shutdown the container and set it to false, or else the container will fail to start. You can change the rest of the environment variables as needed and add more from the list in entrypoint.sh
You can read more about the usage of the nginx container on the docker hub page, https://hub.docker.com/_/nginx
The last thing you need is a webserver config. You can find a basic one below. You can change the server_name as needed.
I hope that made sense as a basic overview. Also the configs should work, but I haven't tested them as I don't have the time right now.
THANK YOU - That was the missing piece for me (there's no web server in your image). I got everything up and running. Here's my compose file (I used your nginx.conf example exactly as above):
Great, happy to help.
For anyone else who finds this - don't forget to set FLOX_DB_INIT to "false" after your first successful boot.