1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
version: '3'
services:
ruby:
environment:
- DATABASE_HOST=postgres
build:
args:
- RUBY_VERSION=${RUBY_VERSION:-3.2.2}
- RUBY_PLATFORM=${RUBY_PLATFORM:-ruby}
context: .
volumes:
- '.:/usr/src/app'
depends_on:
- postgres
postgres:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=jsonb_accessor
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- pg_data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432
volumes:
pg_data:
|