Skip to content

Commit 7fdd903

Browse files
committed
merge main
2 parents 28dc89b + 00792dc commit 7fdd903

File tree

5 files changed

+530
-242
lines changed

5 files changed

+530
-242
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ Thumbs.db
1818
tests/
1919
docs/
2020
*.md
21+
storybook-static/
2122
!package.json
2223
!pnpm-lock.yaml

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ COPY . .
4242
# Set environment variables for build - they are provided at runtime
4343
ENV SKIP_ENV_VALIDATION=true
4444
ENV NODE_ENV=production
45+
ENV NODE_OPTIONS="--max-old-space-size=4096"
4546

4647
# Enable pnpm and build
4748
RUN corepack enable pnpm && pnpm run build

docker-compose.prod.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
services:
22
fresco:
3-
env_file:
4-
- .env
5-
image: "ghcr.io/complexdatacollective/fresco:feature-docker"
3+
image: "ghcr.io/complexdatacollective/fresco:latest"
64
depends_on:
75
postgres:
86
condition: service_healthy
@@ -13,16 +11,23 @@ services:
1311
- 0:3000
1412
networks:
1513
- fresco_network
14+
environment:
15+
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/fresco
16+
DATABASE_URL_UNPOOLED: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/fresco
17+
env_file:
18+
- .env
1619

1720
postgres:
1821
image: postgres:16-alpine
1922
restart: always
23+
environment:
24+
POSTGRES_DB: fresco
2025
env_file:
2126
- .env
2227
volumes:
23-
- postgres:/var/lib/postgresql/data
28+
- postgres:/var/lib/postgresql/fresco_data
2429
healthcheck:
25-
test: ["CMD", "pg_isready", '-U', 'postgres']
30+
test: ["CMD", "pg_isready", '-U', '${POSTGRES_USER}']
2631
interval: 5s
2732
timeout: 10s
2833
retries: 5

migrate-and-start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
2+
set -e
23

34
node setup-database.js
45
node initialize.js
5-
node server.js
6+
exec node server.js

0 commit comments

Comments
 (0)