Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Add docker-compose.yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
agile6v committed Mar 6, 2019
1 parent 80f2097 commit c81a670
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ RUN git clone -b master https://github.com/agile6v/squeeze.git /tmp/squeeze

WORKDIR /tmp/squeeze

RUN make build
RUN go version && \
env GOOS=linux GOARCH=amd64 \
make build

FROM alpine:3.8

RUN apk --no-cache add ca-certificates
RUN apk add --no-cache \
libc6-compat

COPY --from=builder /tmp/squeeze/squeeze /home/agile6v/squeeze

WORKDIR /home/agile6v/

CMD [./squeeze]
CMD ["/home/agile6v/squeeze"]
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3'
services:
master-server:
image: 'agile6v/squeeze:v0.1.0'
command: '/home/agile6v/squeeze master --alsologtostderr'
networks:
- "squeeze"

slave:
image: 'agile6v/squeeze:v0.1.0'
command: '/home/agile6v/squeeze slave --grpcMasterAddr=master-server:9997 --masterAddr=master-server:9998 --grpcAddr=0.0.0.0:9991 --alsologtostderr -v=2'
depends_on:
- master-server
networks:
- "squeeze"

web:
image: 'agile6v/squeeze:v0.1.0'
command: '/home/agile6v/squeeze web --type="sqlite" --masterAddr="http://master-server:9998" --alsologtostderr'
depends_on:
- master-server
networks:
- "squeeze"

networks:
squeeze:
driver: bridge

0 comments on commit c81a670

Please sign in to comment.