diff --git a/Dockerfile b/Dockerfile index 429a386..76d8bd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,11 @@ WORKDIR /app COPY . . -ENV ASTRO_DB_REMOTE_URL=libsql +ENV DATABASE_URL=postgresql://memento:test@localhost:5432/memento RUN npm install -RUN npx astro db push --remote -RUN npx astro build --remote +RUN npx drizzle-kit push +RUN npx astro build ENV HOST=0.0.0.0 ENV PORT=4321 diff --git a/docker-compose.yml b/docker-compose.yml index 228c452..e587f4f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,4 @@ services: - memento: - build: . - ports: - - 4321:4321 - db: image: postgres:17 ports: @@ -14,3 +9,8 @@ services: POSTGRES_PASSWORD: test POSTGRES_USER: memento + memento: + build: . + ports: + - 4321:4321 +