Last active
June 30, 2021 02:39
-
-
Save hachi8833/d67fa75b826df762ff9dee23b0321351 to your computer and use it in GitHub Desktop.
RailsGoatのdocker-compose.ymlを変更
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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