2021-12-18 11:25:31 +01:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysql:
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
dockerfile: Dockerfile.development
|
2021-12-18 18:29:27 +01:00
|
|
|
command: bundle exec rails server -b 0.0.0.0
|
2021-12-18 11:25:31 +01:00
|
|
|
volumes:
|
|
|
|
- ./:/srv/app
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
mysql:
|
|
|
|
image: mariadb:10.1
|
|
|
|
volumes:
|
|
|
|
- mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: secret
|