Skip to content

Instantly share code, notes, and snippets.

@hachi8833
Last active June 30, 2021 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hachi8833/d67fa75b826df762ff9dee23b0321351 to your computer and use it in GitHub Desktop.
Save hachi8833/d67fa75b826df762ff9dee23b0321351 to your computer and use it in GitHub Desktop.
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