Public Repository

Last pushed: 6 months ago
Short Description
LAMP Server for my web developments
Full Description

LAMP Server - Linux + Apache + MySQL + PHP

This image was created to my web developments.
Based on Ubuntu 16.04 with LAMP + phpMyAdmin.

Creating the development environment

Dockerfile

FROM lpsouza/lamp:latest
COPY db.sql /tmp/
RUN service mysql start && \
         mysql -u root -e "create database db" && \
         mysql -u root db < /tmp/db.sql
EXPOSE 80
ENTRYPOINT /entrypoint.sh

docker-compose.yml

version: '2'

services:
  client-site:
    image: client-site:latest
    build:
      context: .
      dockerfile: Dockerfile
    volumes: 
      - ./site:/var/www/html
    ports:
      - 8080:80
Docker Pull Command
Owner
lpsouza

Comments (0)