Skip to content

Commit

Permalink
ci: update electric
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm authored Jun 12, 2024
2 parents d662f28 + 2fb4989 commit b215d03
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 37 deletions.
13 changes: 4 additions & 9 deletions ci/docker-compose.development.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.1"

volumes:
pg_data:
pg_data_preprod:

services:
frontend:
Expand All @@ -23,15 +23,10 @@ services:
- wal_level=logical
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
- ./db/init/:/docker-entrypoint-initdb.d
- pg_data_preprod:/var/lib/postgresql/data

electric:
image: electricsql/electric:0.11.1
image: electricsql/electric:0.12.0
restart: always
depends_on:
- pg
restart: always

adminer:
image: adminer
restart: always
6 changes: 3 additions & 3 deletions ci/docker-compose.main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.1"

volumes:
pg_data:
pg_data_main:

services:
frontend:
Expand All @@ -23,11 +23,11 @@ services:
- wal_level=logical
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
- pg_data_main:/var/lib/postgresql/data
- ./db/init/:/docker-entrypoint-initdb.d

electric:
image: electricsql/electric:0.11.1
image: electricsql/electric:0.12.0
depends_on:
- pg
restart: always
Expand Down
23 changes: 12 additions & 11 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ volumes:
pg_data:

services:
frontend:
image: ghcr.io/betagouv/compte-rendu-vif-frontend:latest
restart: always
depends_on:
- electric
# frontend:
# image: ghcr.io/betagouv/compte-rendu-vif-frontend:latest
# restart: always
# depends_on:
# - electric

backend:
image: ghcr.io/betagouv/compte-rendu-vif-backend:latest
restart: always
depends_on:
- electric
# backend:
# image: ghcr.io/betagouv/compte-rendu-vif-backend:latest
# restart: always
# depends_on:
# - electric

pg:
image: postgres:14-alpine
Expand All @@ -34,10 +34,11 @@ services:
- ./db/init/:/docker-entrypoint-initdb.d

electric:
image: electricsql/electric:0.11.1
image: electricsql/electric:0.12.0
depends_on:
- pg
environment:
DATABASE_REQUIRE_SSL: false
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@pg:${POSTGRES_PORT}/${POSTGRES_DB}
AUTH_JWT_KEY: ${JWT_SECRET}
PG_PROXY_PASSWORD: ${PG_PROXY_PASSWORD}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@pandabox/prettier-plugin": "^0.1.0",
"@playwright/test": "^1.43.0",
"@types/node": "^20.11.28",
"electric-sql": "^0.11.3",
"electric-sql": "^0.12.0",
"prettier": "^3.2.5",
"prisma": "^4.8.1",
"typed-openapi": "^0.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/electric-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"peerDependencies": {
"@prisma/client": "^4.8.1",
"@sinclair/typebox": "^0.32.20",
"electric-sql": "^0.11.3",
"electric-sql": "^0.12.0",
"zod": "^3.22.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@ungap/with-resolvers": "^0.1.0",
"@xstate/store": "^0.0.5",
"date-fns": "^3.6.0",
"electric-sql": "^0.11.3",
"electric-sql": "^0.12.0",
"install": "^0.13.0",
"npm": "^10.5.0",
"ofetch": "^1.3.4",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b215d03

Please sign in to comment.