still hate docker tho
This commit is contained in:
@@ -3,11 +3,11 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ENV ASTRO_DB_REMOTE_URL=libsql
|
ENV DATABASE_URL=postgresql://memento:test@localhost:5432/memento
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npx astro db push --remote
|
RUN npx drizzle-kit push
|
||||||
RUN npx astro build --remote
|
RUN npx astro build
|
||||||
|
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
ENV PORT=4321
|
ENV PORT=4321
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
memento:
|
|
||||||
build: .
|
|
||||||
ports:
|
|
||||||
- 4321:4321
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
ports:
|
ports:
|
||||||
@@ -14,3 +9,8 @@ services:
|
|||||||
POSTGRES_PASSWORD: test
|
POSTGRES_PASSWORD: test
|
||||||
POSTGRES_USER: memento
|
POSTGRES_USER: memento
|
||||||
|
|
||||||
|
memento:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 4321:4321
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user