Valist
Search…
Setup: Rails / PostgreSQL
This example demonstrates how to run a Rails application that uses PostgreSQL.

valist.yml

1
services:
2
db:
3
image: postgres:10.13
4
environment:
5
- POSTGRES_PASSWORD=password
6
web:
7
public: true
8
cmd: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
9
port: 3000
10
depends_on:
11
- db
12
steps:
13
- name: createdb
14
service: web
15
cmd: rake db:create
Copied!
Last modified 1yr ago
Copy link
Contents
valist.yml