Skip to content

Commit 26adddd

Browse files
committed
Fixed failing CRUD e2e test
1 parent abb5e68 commit 26adddd

File tree

2 files changed

+25
-29
lines changed

2 files changed

+25
-29
lines changed
Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
version: "3"
1+
version: '3'
22
services:
3-
43
#######################################################
54
# EventStoreDB - Event Store
65
#######################################################
76
eventstore.db:
8-
image: eventstore/eventstore:21.10.2-buster-slim
7+
image: eventstore/eventstore:21.10.7-buster-slim
98
# use this image if you're running ARM-based proc like Apple M1
109
# image: ghcr.io/eventstore/eventstore:21.10.0-alpha-arm64v8
1110
environment:
@@ -29,33 +28,33 @@ services:
2928
target: /var/log/eventstore
3029
networks:
3130
- eventstore.db
32-
31+
3332
#######################################################
3433
# Postgres
3534
#######################################################
3635
postgres:
37-
image: clkao/postgres-plv8
38-
container_name: postgres
39-
environment:
40-
POSTGRES_PASSWORD: Password12!
41-
ports:
42-
- "5432:5432"
43-
networks:
44-
- postgres
36+
image: clkao/postgres-plv8
37+
container_name: postgres
38+
environment:
39+
POSTGRES_PASSWORD: Password12!
40+
ports:
41+
- '5432:5432'
42+
networks:
43+
- postgres
4544

4645
pgadmin:
47-
image: dpage/pgadmin4
48-
container_name: pgadmin_container
49-
environment:
50-
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
51-
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
52-
PGADMIN_CONFIG_SERVER_MODE: 'False'
53-
volumes:
54-
- pgadmin:/var/lib/pgadmin
55-
ports:
56-
- "${PGADMIN_PORT:-5050}:80"
57-
networks:
58-
- postgres
46+
image: dpage/pgadmin4
47+
container_name: pgadmin_container
48+
environment:
49+
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
50+
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
51+
PGADMIN_CONFIG_SERVER_MODE: 'False'
52+
volumes:
53+
- pgadmin:/var/lib/pgadmin
54+
ports:
55+
- '${PGADMIN_PORT:-5050}:80'
56+
networks:
57+
- postgres
5958

6059
networks:
6160
eventstore.db:
@@ -67,4 +66,4 @@ volumes:
6766
eventstore-volume-data:
6867
eventstore-volume-logs:
6968
postgres:
70-
pgadmin:
69+
pgadmin:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import createConnectionPool, { sql } from '@databases/pg';
1+
import { sql } from '@databases/pg';
22
import tables from '@databases/pg-typed';
33
import DatabaseSchema from './__generated__';
44
import databaseSchema from './__generated__/schema.json';
55

66
export { sql };
77
export { carts, cartItems };
88

9-
const db = createConnectionPool();
10-
export default db;
11-
129
const { cart: carts, cart_item: cartItems } = tables<DatabaseSchema>({
1310
databaseSchema,
1411
});

0 commit comments

Comments
 (0)