Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RailsGoatのdocker-compose.ymlを変更
version: '2'
services:
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- mysql
environment:
- RAILS_ENV=mysql
mysql:
image: mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- "3306:3306"
volumes:
- mysql:/var/lib/mysql
volumes:
postgres:
mysql:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment