Hi all.
As the title suggests, I have 2 Containers.
1 is Apache+PHP
2 is MySQL server
In the Kinematic app, both Containers/Services are listed on the left pane and both are running with no errors, with the exception of:
apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
Under VOLUMES in the left pane, MySQL displays both, a Docker Folder and a Local Folder. However, the Apache+PHP container only displays the Docker folder.
Why has the Local Folder not auto mounted? and how can i mount it?
“docker run --help” gives me alot of Options, which is great, but the problem is, i dont know what im suppose to do in this case.
I’ve searched Google Alot! Im getting nowhere, just frustration.
Can someone please point me to an article outlining this stuff, or better yet, tell me how to fix this?
My Docker Project directory/file structure;
lamp_php73/Containers/apache
lamp_php73/Containers/mysql
lamp_php73/WWW
lamp_php73/docker-compose.yml
lamp_php73/LAMP_php73.Dockerfile
lamp_php73/LAMP_php73_MYSQL.Dockerfile
docker-Compose.yml
version: '2'
services:
apachephp:
build:
context: ./
dockerfile: LAMP_php73.Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- lamp_php73_CONFIG:/Containers/apache
mysql:
build:
context: ./
dockerfile: LAMP_php73_MYSQL.Dockerfile
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD : 'yes'
restart: always
volumes:
- lamp_php73_MYSQL_CONFIG:/Containers/mysql
volumes:
lamp_php73_CONFIG:
lamp_php73_MYSQL_CONFIG:
LAMP_php73.Dockerfile
FROM ubuntu:focal
WORKDIR /CODE
ENV PORT 80
#ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ondrej/php
RUN add-apt-repository ppa:ondrej/apache2
RUN apt-get update -y
RUN apt-get upgrade -y
#---CORE Essentials
RUN apt-get install -y gcc
RUN apt-get install -y make
RUN apt-get install -y autoconf
RUN apt-get install -y libc-dev
RUN apt-get install -y pkg-config
RUN apt-get install -y composer
#——————————————— [*** LAMP Stack ***] ———————————
#---APACHE2
RUN apt-get install -y apache2
RUN apt-get install -y libapache2-mod-php
#---PHP
RUN curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | /bin/bash
RUN apt-get install -y php7.3-phalcon
RUN apt-get install -y php7.3-dev
RUN apt-get install -y php-common
RUN apt-get install -y php-cli
#---PHP Extensions
RUN apt-get install -y php-mysql
RUN apt-get install -y php-curl
RUN apt-get install -y php-gd
RUN apt-get install -y php-json
RUN apt-get install -y php-mbstring
RUN apt-get install -y php-bcmath
RUN apt-get install -y php-xml
RUN apt-get install -y php-readline
RUN apt-get install -y php-intl
RUN apt-get install -y php-zip
RUN apt-get install -y php-bz2
RUN apt-get install -y zlib1g-dev
RUN apt-get install -y libmemcached-dev
CMD ["apachectl","-D","FOREGROUND"]
RUN a2enmod rewrite
EXPOSE 80
EXPOSE 443
#CMD ["dir"]
LAMP_php73_MYSQL.Dockerfile
FROM mysql:5.7.25
ENV MYSQL_ALLOW_EMPTY_PASSWORD='yes'
EXPOSE 3306
Where is this going wrong?