services: db: image: postgres:17 environment: POSTGRES_PASSWORD: password POSTGRES_USER: postgres volumes: - db_data:/var/lib/postgresql/data web: build: context: . args: RUBY_VERSION: '4.0.10' PG_MAJOR: '14' NODE_MAJOR: '16' YARN_VERSION: '1.22.17' command: bash -c "rm -f ./tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" volumes: - .:/app - ./config/database.yml.sample:/app/config/database.yml environment: POSTGRES_PASSWORD: password POSTGRES_USER: postgres POSTGRES_HOST: db ports: - "3000:3000" depends_on: - db # Declare the volumes that our application uses. volumes: db_data: