sharedlists/docker-compose.yml
JuliusR a92d4a1a32 prefer '-b 0.0.0.0' over '--bind 0.0.0.0' (docker-compose.yml)
The latter yields the following error:

    `handle_argument_error': ERROR: "rails server" was called with
    arguments ["--bind", "0.0.0.0"] (Thor::InvocationError)
2021-12-18 18:52:14 +01:00

24 lines
388 B
YAML

version: "2"
volumes:
mysql:
services:
app:
build:
context: ./
dockerfile: Dockerfile.development
command: bundle exec rails server -b 0.0.0.0
volumes:
- ./:/srv/app
ports:
- 3000:3000
depends_on:
- mysql
mysql:
image: mariadb:10.1
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret