Skip to content

Instantly share code, notes, and snippets.

@pstuifzand
Created July 19, 2017 17:29
Show Gist options
  • Save pstuifzand/a1d87574a8297fb0e5272ddd1c7bab0e to your computer and use it in GitHub Desktop.
Save pstuifzand/a1d87574a8297fb0e5272ddd1c7bab0e to your computer and use it in GitHub Desktop.
Docker for jirasearch
version: '2'
services:
web:
image: "jirasearch"
ports:
- "8082:8081"
volumes:
- "/home/peter/go/src/:/go/src/"
links:
- redis
redis:
image: "redis:alpine"
FROM golang:latest
WORKDIR /go/src/github.com/pstuifzand/jirasearch
EXPOSE 8081
COPY CompileDaemon /go
CMD [ "/go/CompileDaemon", "-build", "go build -v -o /go/bin/app ./cmd/server/main.go", "-command", "/go/bin/app" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment