# Due to lack of "expressivity" in Compose, we define our own couple of service "pseudo-types":
#
# - image-only services (name: *-image)
# The only goal of these is to build images. No other services build images.
# These have entrypoint overridden to exit immediately.
#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.5 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
RUN mkdir /myapp | |
WORKDIR /myapp | |
COPY Gemfile /myapp/Gemfile | |
COPY Gemfile.lock /myapp/Gemfile.lock | |
RUN bundle install | |
COPY . /myapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\w » " | |
export EDITOR=code | |
# Requires file from https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash | |
source ~/git-completion.bash | |
# Make docker-compose commands shorter | |
alias dcb='docker-compose build' | |
alias dcu='docker-compose up' | |
alias dcd='docker-compose down' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
default: &default | |
image: jekyll/jekyll | |
volumes: | |
- .:/srv/jekyll | |
ports: | |
- "80:4000" |