Skip to content

Instantly share code, notes, and snippets.

@uurtech
Created October 4, 2018 09:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uurtech/a0bd8ebd87927c96c68fcfb780c8005c to your computer and use it in GitHub Desktop.
Save uurtech/a0bd8ebd87927c96c68fcfb780c8005c to your computer and use it in GitHub Desktop.
Docker Ubuntu & PHP & Memcached & mongodb & git
version: '2'
services:
web:
build: .
ports:
- "80:80"
tty: true
volumes:
- ./apps:/var/www/html
mysql:
image: mysql:5.7
ports:
- 3306:3306
volumes:
- ./veriler:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: YOUR_STRONG_PASSWORD
FROM ubuntu:latest
RUN apt update && apt upgrade -y
ENV TZ=Europe/Istanbul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt install apache2 -y
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN apt install -y curl
RUN apt install -y php libapache2-mod-php php-mysql
RUN apt install -y cron
RUN apt install -y php-mongodb
RUN apt install -y php-mbstring
RUN apt install -y php-xml
RUN apt install -y git
RUN apt install -y php-memcached
RUN apt install -y memcached
RUN apt install -y vim
RUN apt install -y php-zip
RUN git config --global http.sslverify false
RUN service apache2 restart
CMD ["apache2ctl", "-D", "FOREGROUND"]
EXPOSE 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment