File: docker-compose.yml

package info (click to toggle)
ruby-jsonb-accessor 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: ruby: 371; makefile: 10; sh: 5
file content (30 lines) | stat: -rw-r--r-- 740 bytes parent folder | download
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: