Commit df226b24 by aliarshad9691

update build

parent 9c68538d
FROM ubuntu:latest FROM ubuntu:16.04
#################################################### Adding new user and group #################################################### #################################################### Adding new user and group ####################################################
ENV myuser=ali ENV myuser=jenkins
ENV myuserid=501 ENV myuserid=1002
ENV mygroup=ali ENV mygroup=jenkins
ENV mygroupid=501 ENV mygroupid=1002
RUN groupadd $mygroup -g $mygroupid RUN groupadd $mygroup -g $mygroupid
RUN useradd -u $myuserid -g $mygroupid $myuser RUN useradd -u $myuserid -g $mygroupid $myuser
...@@ -25,7 +25,7 @@ apt-get -y clean all ...@@ -25,7 +25,7 @@ apt-get -y clean all
######################################################### PHP ######################################################### ######################################################### 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 apt-get -y clean all
######################################################### Apache Configs ######################################################### ######################################################### Apache Configs #########################################################
......
...@@ -3,15 +3,15 @@ version: '2' ...@@ -3,15 +3,15 @@ version: '2'
services: services:
web: web:
build: build:
context: . context: ./
depends_on: depends_on:
- db - db
links: links:
- db - db
ports: ports:
- 80:80 - 20010:80
volumes: volumes:
- ./WWW_DATA:/var/www/html - ../WWW_DATA:/var/www/html
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
...@@ -22,7 +22,7 @@ services: ...@@ -22,7 +22,7 @@ services:
db: db:
image: mariadb image: mariadb
volumes: volumes:
- ./SQL_DATA:/var/lib/mysql - ../SQL_DATA:/var/lib/mysql
env_file: env_file:
- database.env - database.env
restart: unless-stopped 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