Skip to content

Instantly share code, notes, and snippets.

@andrewmclagan
Last active February 12, 2018 13:31
Show Gist options
  • Select an option

  • Save andrewmclagan/ead29b68377175e7d620 to your computer and use it in GitHub Desktop.

Select an option

Save andrewmclagan/ead29b68377175e7d620 to your computer and use it in GitHub Desktop.

Revisions

  1. andrewmclagan revised this gist Feb 23, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -19,6 +19,8 @@ web:
    links:
    - database
    - cache
    volumes:
    - ./:/var/www
    environment:
    - APP_ENV=production
    - DB_DATABASE=laravel
  2. andrewmclagan revised this gist Feb 23, 2016. No changes.
  3. andrewmclagan created this gist Feb 23, 2016.
    26 changes: 26 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    load_balancer:
    image: tutum/haproxy
    links:
    - web
    ports:
    - "80:80"

    cache:
    image: redis

    database:
    image: mysql
    environment:
    - MYSQL_ROOT_PASSWORD=SuperSecretPassword123
    - MYSQL_DATABASE=laravel

    web:
    image: andrewmclagan/nginx-hhvm
    links:
    - database
    - cache
    environment:
    - APP_ENV=production
    - DB_DATABASE=laravel
    - DB_PASSWORD=SuperSecretPassword123
    - VIRTUAL_HOST=laravel.local