diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be60bb1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM tutum/apache-php +ADD *.php /app diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bd536a8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '2' +services: + web: + build: . + ports: + - "80:80" + volumes: + - .:/code + depends_on: + - postgres + postgres: + image: postgres diff --git a/index.php b/index.php new file mode 100644 index 0000000..cb60a89 --- /dev/null +++ b/index.php @@ -0,0 +1,39 @@ + + +KubeCon keynote demo + + + + + +Hello, world! I am the red version, running in container in . +
+

Word:

+ +
+

No database connection.

+ + diff --git a/setup.php b/setup.php new file mode 100644 index 0000000..0eb33f4 --- /dev/null +++ b/setup.php @@ -0,0 +1,3 @@ +