summaryrefslogtreecommitdiff
path: root/examples/docker/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docker/docker-compose.yml')
-rw-r--r--examples/docker/docker-compose.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/docker/docker-compose.yml b/examples/docker/docker-compose.yml
new file mode 100644
index 0000000..1be3bc1
--- /dev/null
+++ b/examples/docker/docker-compose.yml
@@ -0,0 +1,29 @@
+# service configuration for our dockerized Ponzu app
+admin:
+
+ # use the Dockerfile in the ponzu directory
+ build: ./admin
+
+ # expose the port we configured Ponzu to publish
+ expose:
+ - "8080"
+
+ volumes:
+ - ./admin:/go/src/project
+
+# service configuration for our web server
+# web:
+
+ # set the build context to web directory
+# build: ./web
+
+ # build with a different Dockerfile
+# dockerfile: config/containers/Dockerfile-nginx
+
+ # makes the web container aware of the app container
+# links:
+# - admin
+
+ # expose the port we configured Nginx to bind to
+## ports:
+# - "80:80"