Skip to content

Instantly share code, notes, and snippets.

@bds
Last active March 25, 2020 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bds/83c6a0dc16d96f580247b7e53dcf641f to your computer and use it in GitHub Desktop.
Save bds/83c6a0dc16d96f580247b7e53dcf641f to your computer and use it in GitHub Desktop.
Crystal Docker Starter
.env
.gitignore
*.swp
node_modules
npm-debug.log
version: "3.7"
services:
crystal:
build: "."
image: "crystal"
working_dir: /usr/src/app
container_name: crystal-container
environment:
- FOO=bar
secrets:
- example_pem
ports:
- "3000:3000"
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
networks:
- crystal-starter-network
networks:
crystal-starter-network:
driver: bridge
secrets:
example_pem:
file: ./example.pem
volumes:
node_modules:
FROM crystallang/crystal:0.33.0-alpine-build
RUN crystal --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment