Skip to content

Commit

Permalink
fix: docker compose PORT for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Apr 11, 2024
1 parent 17aaf00 commit 64b18b6
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 42 deletions.
1 change: 0 additions & 1 deletion db/1-init.sql

This file was deleted.

34 changes: 0 additions & 34 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,6 @@ volumes:
pg_data:

services:
frontend:
build:
context: .
target: frontend
environment:
VITE_BACKEND_URL: ${VITE_BACKEND_URL}
VITE_ELECTRIC_URL: ${VITE_ELECTRIC_URL}
ports:
- "${FRONTEND_PORT}:4173"
profiles:
- production

backend:
build:
context: .
target: backend
environment:
PG_HOST: pg
PG_PORT: ${PG_PORT}
PG_USER: ${PG_USER}
PG_PASSWORD: ${PG_PASSWORD}
PG_USERS_DB: ${PG_USERS_DB}
JWT_SECRET: ${JWT_SECRET}
ELECTRIC_SERVICE: http://electric
ELECTRIC_PG_PROXY_PORT: ${PG_PROXY_PORT}
HTTP_PORT: ${HTTP_PORT}
ports:
- "${HTTP_PORT}:${HTTP_PORT}"
depends_on:
- electric
profiles:
- production

pg:
image: postgres:14-alpine
environment:
Expand All @@ -63,7 +30,6 @@ services:
DATABASE_URL: postgresql://${PG_USER}:${PG_PASSWORD}@pg:${PG_PORT}/${PG_ELECTRIC_DB}
AUTH_JWT_KEY: ${JWT_SECRET}
# LOGICAL_PUBLISHER_PORT: 5433
# SERVICE: 'http://localhost:5133',
PG_PROXY_PASSWORD: ${PG_PROXY_PASSWORD}
PG_PROXY_PORT: ${PG_PROXY_PORT}
AUTH_MODE: secure
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@tanstack/react-router": "^1.22.2",
"@tanstack/router-devtools": "^1.22.2",
"date-fns": "^3.6.0",
"electric-sql": "^0.9.5",
"electric-sql": "^0.10.0",
"install": "^0.13.0",
"npm": "^10.5.0",
"ofetch": "^1.3.4",
Expand Down
106 changes: 100 additions & 6 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 64b18b6

Please sign in to comment.