Skip to content

Commit

Permalink
docker: remove wait time on boot and use restart unless-stopped optio…
Browse files Browse the repository at this point in the history
…n instead (#105)
  • Loading branch information
Aeneas authored Jun 15, 2016
1 parent 8dc1e1f commit eb72850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile-dangerous
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN go get github.com/Masterminds/glide
RUN glide install
RUN go install github.com/ory-am/hydra

ENTRYPOINT sleep 5; /go/bin/hydra host --dangerous-auto-logon
ENTRYPOINT /go/bin/hydra host --dangerous-auto-logon

EXPOSE 4444
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- SYSTEM_SECRET=${SYSTEM_SECRET}
- CONSENT_URL=http://${DOCKER_IP}:3000
- DATABASE_URL=rethinkdb://database:28015/hydra
restart: unless-stopped

consent:
environment:
Expand All @@ -28,6 +29,7 @@ services:
- hydravolume:/root
ports:
- "3000:3000"
restart: unless-stopped

rethinkdb:
image: rethinkdb
Expand Down

0 comments on commit eb72850

Please sign in to comment.