File: docker-compose.yml

package info (click to toggle)
ruby-pg 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,316 kB
  • sloc: ansic: 9,403; ruby: 3,160; makefile: 10
file content (28 lines) | stat: -rw-r--r-- 548 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
services:
  yb:
    build: .
    container_name: yb
    ports:
      - "127.0.0.1:5433:5433"
    volumes:
      - certs:/app/generated_certs
    healthcheck:
      test: 'ysqlsh -h $$(hostname) -c \\conninfo || exit 1;'
      interval: 2s
      timeout: 30s
      retries: 20
      start_period: 10s

  pg:
    image: ruby:3.0
    working_dir: /app
    volumes:
      - .:/app
      - certs:/generated_certs
    command: bash -c "gem inst pg-*.gem && ruby pg-test.rb"
    depends_on:
      yb:
        condition: service_healthy

volumes:
  certs: