Commit df226b24 by aliarshad9691

update build

parent 9c68538d
FROM ubuntu:latest
FROM ubuntu:16.04
#################################################### Adding new user and group ####################################################
ENV myuser=ali
ENV myuserid=501
ENV mygroup=ali
ENV mygroupid=501
ENV myuser=jenkins
ENV myuserid=1002
ENV mygroup=jenkins
ENV mygroupid=1002
RUN groupadd $mygroup -g $mygroupid
RUN useradd -u $myuserid -g $mygroupid $myuser
......@@ -25,7 +25,7 @@ apt-get -y clean all
######################################################### PHP #########################################################
RUN apt-get install -y php7.0-fpm php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-fastcgi && \
RUN apt-get install -y php-fpm php-mysql php-curl php-json php-cgi php libapache2-mod-fastcgi && \
apt-get -y clean all
######################################################### Apache Configs #########################################################
......
......@@ -3,15 +3,15 @@ version: '2'
services:
web:
build:
context: .
context: ./
depends_on:
- db
links:
- db
ports:
- 80:80
- 20010:80
volumes:
- ./WWW_DATA:/var/www/html
- ../WWW_DATA:/var/www/html
environment:
- MYSQL_HOST=db
env_file:
......@@ -22,7 +22,7 @@ services:
db:
image: mariadb
volumes:
- ./SQL_DATA:/var/lib/mysql
- ../SQL_DATA:/var/lib/mysql
env_file:
- database.env
restart: unless-stopped
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment