Coder Social home page Coder Social logo

docker.nginx-php's Introduction

Docker nginx with php

Use in combination with digitalpatrioten/nginx-configurations

Sample Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "phusion/ubuntu-14.04-amd64"
  config.vm.network "private_network", ip: "192.168.33.10"
  config.vm.synced_folder "./", "/vagrant", id: "vagrant-root",
      owner: "www-data",
      group: "www-data",
      mount_options: ["dmode=755,fmode=644"]
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--natnet1", "172.16/12"]
    vb.customize ["modifyvm", :id, "--memory", "2048"]
  end
  config.vm.provision "docker" do |d|
    d.pull_images "mysql"
    d.pull_images "digitalpatrioten/nginx-configurations"
    d.pull_images "digitalpatrioten/nginx-php"
    d.pull_images "obi12341/solr-typo3"
    d.run "mysql",
      image: "mysql",
      args: "--name mysql -e MYSQL_ROOT_PASSWORD=password -p 3306:3306"
    d.run "obi12341/solr-typo3",
      image: "obi12341/solr-typo3",
      args: "--name solr -p 8080:8080"
    d.run "digitalpatrioten/nginx-configurations",
      image: "digitalpatrioten/nginx-configurations",
      args: "--name nginx-configurations"
    d.run "digitalpatrioten/nginx-php",
      image: "digitalpatrioten/nginx-php",
      args: "-v '/vagrant:/var/www' --volumes-from nginx-configurations -e 'SITES_CONFIGS=default-typo3,default-ssl-typo3' -p 80:80 -p 443:443 --link mysql:mysql --link solr:solr"
    end
end

docker.nginx-php's People

Contributors

cs-digitalpatrioten avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.