Skip to content

Commit 3a230e9

Browse files
committed
chore(docker): update compose file to format 2.0
1 parent b4ad4f0 commit 3a230e9

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

3-
## v0.0.6 [UNRELEASED]
3+
## v0.0.6 [18/05/13]
4+
- 18/05/13 chore(docker): update compose file to format 2.0
45
- 18/03/19 fix(dao): fix pagination computing
56
refact(dao): factorize ObjectID error
67
chore(make): make Makefile Windows compatible

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ RUN make all && apk del make git && \
2121

2222
# by default, the exposed ports are 8020 (HTTP)
2323
EXPOSE 8020
24+
ENTRYPOINT ["/app/handsongo"]

Dockerfile.multi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ COPY --from=build-env /go/bin/handsongo /app/
2727

2828
# by default, the exposed ports are 8020 (HTTP)
2929
EXPOSE 8020
30+
ENTRYPOINT ["/app/handsongo"]

docker-compose.yml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
# handsongo micro-service
2-
handsongo:
3-
container_name: handsongo
4-
image: sfeir/handsongo:latest
5-
restart: always
6-
links:
7-
- mongo
8-
ports:
9-
- "8020:8020"
10-
command: /app/handsongo -port 8020 -logl debug -logf text -statd 15s -db mongodb://mongo/spirits
1+
version: '2'
112

12-
# bdd mockup
13-
mongo:
14-
container_name: handsongo-mongo
15-
image: mongo:3.4
16-
restart: always
17-
ports:
18-
- "27017:27017"
3+
services:
4+
# handsongo micro-service
5+
handsongo:
6+
container_name: handsongo
7+
image: sfeir/handsongo:latest
8+
restart: always
9+
external_links:
10+
- mongo:mongo
11+
ports:
12+
- "8020:8020"
13+
command: -port 8020
14+
-logl debug
15+
-logf text
16+
-statd 15s
17+
-db mongodb://mongo/spirits
18+
19+
# mongodb db
20+
mongo:
21+
container_name: handsongo-mongo
22+
image: mongo:3.4
23+
restart: always
24+
ports:
25+
- "27017:27017"

0 commit comments

Comments
 (0)