bitnami-containers/bitnami/rails/docker-compose.yml

23 lines
495 B
YAML

# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
version: '2'
services:
mariadb:
image: docker.io/bitnami/mariadb:11.1
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
myapp:
image: docker.io/bitnami/rails:7
ports:
- '3000:3000'
environment:
- DATABASE_HOST=mariadb
- DATABASE_NAME=my_app_development
volumes:
- './my-project:/app'
depends_on:
- mariadb