summaryrefslogtreecommitdiff
path: root/examples/docker/docker-compose.yml
blob: 1be3bc1b833017dd541f7b98c1485d5451f7e6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"