shard-radix/docker-compose.yml
Luis Lavena 2e77e6463a Switch dev tooling to containers
Move away from local installed Crystal and use `hydrofoil-crystal`
container image as runtime environment.

The included `docker-compose.yml` and `Procfile.dev` files setups everything
that is needed to automatically run the project's specs.

To start watching for changes, in a console:

    $ docker compose up

(Use `docker-compose` if you're still using old version of Docker Compose)

You can press `Ctrl+C` to stop it or from another console:

    $ docker compose stop

[skip ci]
2021-11-27 13:05:37 +01:00

12 lines
295 B
YAML

services:
crystal:
image: ghcr.io/luislavena/hydrofoil-crystal:1.2
command: overmind start -f Procfile.dev
working_dir: /app
# Set these env variables using `export FIXUID=$(id -u) FIXGID=$(id -g)`
user: ${FIXUID:-1000}:${FIXGID:-1000}
volumes:
- .:/app:cached