version: '2' services: mariadb: image: 'bitnami/mariadb:10.3' environment: - ALLOW_EMPTY_PASSWORD=yes myapp: tty: true # Enables debugging capabilities when attached to this container. image: bitnami/rails:6 environment: - DATABASE_HOST=mariadb - DATABASE_NAME=my_app_development depends_on: - mariadb ports: - 3000:3000 volumes: - .:/app