version: '2.1' services: lib: build: context: . dockerfile: dev.Dockerfile image: icalialabs/foresight-gem:development volumes: # Mount our app code directory (".") into our app containers at the `/usr/src/lib` folder: - .:/usr/src/lib # Keep the stdin open, so we can attach to our app container's process # and do things such as byebug, etc: stdin_open: true # Enable sending signals (CTRL+C, CTRL+P + CTRL+Q) into the container: tty: true # The command: command: guard extra_hosts: - "artanis-dev.icalialabs.com:13.85.80.155" environment: ARTANIS_URL: ${ARTANIS_URL:-http://artanis.icalialabs.com} ARTANIS_CLIENT_KEY: ${ARTANIS_CLIENT_KEY:-SOME_KEY} ARTANIS_CLIENT_SECRET: ${ARTANIS_CLIENT_SECRET:-SOME_SECRET}