Hi
I'm new here I don't know if I'm in the right place or not to ask my Question
I want to install Flarum on docker My knowledge on docker is minimum and I have to install flarum on docker I watched many video on how to use docker but still don't get it
what I did I created a folder name caforum and in terminal I did :
composer create-project flarum/flarum . --stability=beta
then I created a file docker-compose.yml and folder docker with two sub folders one is web and the second is databse.
docker-compose.yml:
version: "3.1"
services:
web:
build:
context: ./
dockerfile: docker/web/Dockerfile
restart: always
ports:
- "8484:80"
volumes:
- ./httpdocs:/var/www/html:z
- ./docker/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:z
- ./docker/php/php.ini:/usr/local/etc/php/php.ini:z
environment:
JOOMLA_DB_HOST: mysql
JOOMLA_DB_PASSWORD: caforum
JOOMLA_DB_USER: caforum
JOOMLA_DB_NAME: caforum
mysql:
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: caforum
MYSQL_DATABASE: caforum
MYSQL_USER: caforum
MYSQL_PASSWORD: caforum
volumes:
- my-db:/var/lib/mysql
volumes:
my-db:
inside /docker/web I created a file name it Dockerfile :
FROM php:7.2-cli
COPY . /var/www/html
WORKDIR /var/www/html
after I did docker-compose build
and then docker-compose up
I my browser I'm getting
`Unable to connect
Firefox can’t establish a connection to the server at 127.0.0.1.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox Developer Edition is permitted to access the Web.`
I need help if some one can Help me. Thank you.