Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix examples/consul so it works #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions examples/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ services:
links:
- consul:consul
ports:
- "8080:80"
network_mode: bridge

- 8080:80

backend:
image: autopilotpattern/nginx-backend:${TAG:-latest}
Expand All @@ -25,26 +23,23 @@ services:
- consul:consul
expose:
- 3001
network_mode: bridge


consul:
image: autopilotpattern/consul:0.7.2-r0.8
image: autopilotpattern/consul:${TAG:-latest}
environment:
- CONSUL=consul
- CONSUL_DEV=dev
command: >
/usr/local/bin/containerpilot
/bin/consul agent -server
-bootstrap-expect 1
-config-dir=/etc/consul
-ui-dir /ui
restart: always
mem_limit: 128m
expose:
- 8500
ports:
- 8500:8500
expose:
- 53
- 8300
- 8301
- 8302
- 8400
- 8500
network_mode: bridge