compose.yaml (3413B)
1 name: 'pqgo' 2 3 services: 4 pgbouncer: 5 profiles: ['pgbouncer'] 6 image: 'cleanstart/pgbouncer:latest' 7 ports: ['127.0.0.1:6432:6432'] 8 command: ['/init/pgbouncer.ini'] 9 volumes: ['./testdata/pgbouncer:/init', './testdata/ssl:/ssl'] 10 environment: 11 'PGBOUNCER_DATABASE': 'pqgo' 12 13 pgpool: 14 profiles: ['pgpool'] 15 image: 'pgpool/pgpool:4.4.3' 16 ports: ['127.0.0.1:7432:7432'] 17 volumes: ['./testdata/pgpool:/init', './testdata/ssl:/ssl'] 18 entrypoint: '/init/entry.sh' 19 environment: 20 'PGPOOL_PARAMS_PORT': '7432' 21 'PGPOOL_PARAMS_BACKEND_HOSTNAME0': 'pg18' 22 23 cockroach: 24 profiles: ['cockroach'] 25 image: 'cockroachdb/cockroach:latest-v26.1' 26 ports: ['127.0.0.1:26257:26257'] 27 volumes: ['./testdata/cockroach:/docker-entrypoint-initdb.d', './testdata/ssl:/ssl'] 28 command: ['start-single-node', '--accept-sql-without-tls', '--certs-dir=/ssl2'] 29 healthcheck: {test: ['CMD-SHELL', '/cockroach/cockroach node status --insecure --user=pqgo'], start_period: '30s', start_interval: '1s'} 30 31 pg18: 32 image: 'postgres:18' 33 ports: ['127.0.0.1:5432:5432'] 34 entrypoint: '/init/entry.sh' 35 volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl'] 36 shm_size: '128mb' 37 healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'} 38 environment: 39 'POSTGRES_DATABASE': 'pqgo' 40 'POSTGRES_USER': 'pqgo' 41 'POSTGRES_PASSWORD': 'unused' 42 pg17: 43 profiles: ['pg17'] 44 image: 'postgres:17' 45 ports: ['127.0.0.1:5432:5432'] 46 entrypoint: '/init/entry.sh' 47 volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl'] 48 shm_size: '128mb' 49 healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'} 50 environment: 51 'POSTGRES_DATABASE': 'pqgo' 52 'POSTGRES_USER': 'pqgo' 53 'POSTGRES_PASSWORD': 'unused' 54 pg16: 55 profiles: ['pg16'] 56 image: 'postgres:16' 57 ports: ['127.0.0.1:5432:5432'] 58 entrypoint: '/init/entry.sh' 59 volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl'] 60 shm_size: '128mb' 61 healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'} 62 environment: 63 'POSTGRES_DATABASE': 'pqgo' 64 'POSTGRES_USER': 'pqgo' 65 'POSTGRES_PASSWORD': 'unused' 66 pg15: 67 profiles: ['pg15'] 68 image: 'postgres:15' 69 ports: ['127.0.0.1:5432:5432'] 70 entrypoint: '/init/entry.sh' 71 volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl'] 72 shm_size: '128mb' 73 healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'} 74 environment: 75 'POSTGRES_DATABASE': 'pqgo' 76 'POSTGRES_USER': 'pqgo' 77 'POSTGRES_PASSWORD': 'unused' 78 pg14: 79 profiles: ['pg14'] 80 image: 'postgres:14' 81 ports: ['127.0.0.1:5432:5432'] 82 entrypoint: '/init/entry.sh' 83 volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl'] 84 shm_size: '128mb' 85 healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'} 86 environment: 87 'POSTGRES_DATABASE': 'pqgo' 88 'POSTGRES_USER': 'pqgo' 89 'POSTGRES_PASSWORD': 'unused'