Skip to content

Commit

Permalink
chore(docker): update compose file to format 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienfr committed May 13, 2018
1 parent b4ad4f0 commit 3a230e9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## v0.0.6 [UNRELEASED]
## v0.0.6 [18/05/13]
- 18/05/13 chore(docker): update compose file to format 2.0
- 18/03/19 fix(dao): fix pagination computing
refact(dao): factorize ObjectID error
chore(make): make Makefile Windows compatible
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ RUN make all && apk del make git && \

# by default, the exposed ports are 8020 (HTTP)
EXPOSE 8020
ENTRYPOINT ["/app/handsongo"]
1 change: 1 addition & 0 deletions Dockerfile.multi
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ COPY --from=build-env /go/bin/handsongo /app/

# by default, the exposed ports are 8020 (HTTP)
EXPOSE 8020
ENTRYPOINT ["/app/handsongo"]
41 changes: 24 additions & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
# handsongo micro-service
handsongo:
container_name: handsongo
image: sfeir/handsongo:latest
restart: always
links:
- mongo
ports:
- "8020:8020"
command: /app/handsongo -port 8020 -logl debug -logf text -statd 15s -db mongodb://mongo/spirits
version: '2'

# bdd mockup
mongo:
container_name: handsongo-mongo
image: mongo:3.4
restart: always
ports:
- "27017:27017"
services:
# handsongo micro-service
handsongo:
container_name: handsongo
image: sfeir/handsongo:latest
restart: always
external_links:
- mongo:mongo
ports:
- "8020:8020"
command: -port 8020
-logl debug
-logf text
-statd 15s
-db mongodb://mongo/spirits

# mongodb db
mongo:
container_name: handsongo-mongo
image: mongo:3.4
restart: always
ports:
- "27017:27017"

0 comments on commit 3a230e9

Please sign in to comment.