summaryrefslogtreecommitdiff
path: root/examples/docker/docker-compose.yml
blob: e3d4b8eb693002df5e9a6e18832a4c81a83aee2e (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
30
31
32
# 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

  command: bash /go/src/project/start_admin.sh start

# service configuration for our web server
web:

  # use the dockerfile in the web directory
  build: ./web

  volumes:
    - ./web/public:/public

  # makes the web container aware of the admin container
  links:
    - admin

  # expose the port we configured Nginx to bind to
  ports:
    #host will listen on port 3000 in dev
    - "3000:80"