Public Repository

Last pushed: a year ago
Short Description
Lampião: The Cabra Macho's LAMP image
Full Description

Public repo

Lampião

The Cabra Macho's LAMP image

(Actually there is no MySQL included)

FROM leocavalcante/lampiao:1.0

Overriding default configs

COPY config/vhost.conf /etc/apache2/sites-available/000-default.conf
COPY config/php.ini /usr/local/etc/php/

Single run

docker run -d -p 8000:80 --name my-lamp-app -v "$PWD":/var/www/html leocavalcante/lampiao:1.0

Docker Compose

version: '2'
services:
  db:
    image: mysql
    environment:
      MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
      MYSQL_DATABASE: ${DB_DATABASE}
      MYSQL_USER: ${DB_USERNAME}
      MYSQL_PASSWORD: ${DB_PASSWORD}
    volumes:
      - ./data/:/var/lib/mysql/

  web:
    image: leocavalcante/lampiao:1.0
    volumes:
      - ./:/var/www/html/
    ports:
      - "${APP_PORT}:80"
    links:
      - db
Docker Pull Command
Owner
leocavalcante