Skip to content

Instantly share code, notes, and snippets.

@burn2delete
Created June 14, 2016 20:41
Show Gist options
  • Save burn2delete/d29dacc36609f53f1f2a6d5974599b83 to your computer and use it in GitHub Desktop.
Save burn2delete/d29dacc36609f53f1f2a6d5974599b83 to your computer and use it in GitHub Desktop.
Boot-clj Heroku-Docker
web:
build: .
entrypoint: java
command: $JVM_OPTS -cp target/my-project-0.1.0.jar clojure.main -m my-project.api
working_dir: /app/user
environment:
PORT: 8080
ports:
- '8080:8080'
links:
- vault:lounge_vault
- db:lounge_db
db:
image: mongo
ports:
- "27017:27017"
volumes:
- /data/db
command: --smallfiles --rest
vault:
image: degree9/lounge-vault:latest
entrypoint: vault
command: server -config=/app/vault
environment:
VAULT_ADDR: http://0.0.0.0:8200
ports:
- "8200:8200"
volumes:
- /data/vault
FROM degree9/heroku-boot-clj:latest
ENV BOOT_VERSION=2.4.2
# install node
RUN curl --silent --location https://deb.nodesource.com/setup_0.12 | bash - \
&& apt-get install -y nodejs
# install bower
RUN npm install --global bower
# move boot files
COPY boot.properties /app/user
COPY dependencies.edn /app/user
COPY build.boot /app/user
RUN boot repl -e '(System/exit 0)'
# move project files
COPY /resources /app/user
COPY /src /app/user
RUN boot prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment