|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
version: "2.1" |
|
|
|
|
version: "2.2" |
|
|
|
|
|
|
|
|
|
services: |
|
|
|
|
# db55: |
|
|
|
@ -96,8 +96,8 @@ services:
|
|
|
|
|
# - 5495:5432 |
|
|
|
|
# volumes: |
|
|
|
|
# - ./pg-sakila-db:/docker-entrypoint-initdb.d |
|
|
|
|
pg96: |
|
|
|
|
image: postgres:9.6 |
|
|
|
|
pg147: |
|
|
|
|
image: postgres:14.7 |
|
|
|
|
restart: always |
|
|
|
|
environment: |
|
|
|
|
POSTGRES_PASSWORD: password |
|
|
|
@ -337,13 +337,13 @@ services:
|
|
|
|
|
xc-test-pg: |
|
|
|
|
image: node:12.22.1-slim |
|
|
|
|
depends_on: |
|
|
|
|
pg96: |
|
|
|
|
pg147: |
|
|
|
|
condition: service_healthy |
|
|
|
|
volumes: |
|
|
|
|
- ./:/home/app |
|
|
|
|
environment: |
|
|
|
|
NODE_ENV: test |
|
|
|
|
DATABASE_URL: postgres://postgres:password@pg96:5432/postgres |
|
|
|
|
DATABASE_URL: postgres://postgres:password@pg147:5432/postgres |
|
|
|
|
command: |
|
|
|
|
- /bin/bash |
|
|
|
|
- -c |
|
|
|
@ -405,13 +405,13 @@ services:
|
|
|
|
|
xc-test-gql-pg: |
|
|
|
|
image: node:12.22.1-slim |
|
|
|
|
depends_on: |
|
|
|
|
pg96: |
|
|
|
|
pg147: |
|
|
|
|
condition: service_healthy |
|
|
|
|
volumes: |
|
|
|
|
- ./:/home/app |
|
|
|
|
environment: |
|
|
|
|
NODE_ENV: test |
|
|
|
|
DATABASE_URL: postgres://postgres:password@pg96:5432/postgres |
|
|
|
|
DATABASE_URL: postgres://postgres:password@pg147:5432/postgres |
|
|
|
|
command: |
|
|
|
|
- /bin/bash |
|
|
|
|
- -c |
|
|
|
|