diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index aed46a8..57706a8 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -7,8 +7,9 @@ services: dockerfile: Dockerfile image: si-sorting-frontend container_name: si-sorting-frontend + command: ["npm", "run", "start"] ports: - - "3000:3000" + - "5173:5173" environment: DEPLOY_MODE: compose volumes: diff --git a/docker-compose.yml b/docker-compose.yml index f973cc7..03d7ffd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,9 @@ services: frontend: image: ghcr.io/catalystneuro/si-sorting-frontend:latest container_name: si-sorting-frontend + command: ["npm", "run", "start"] ports: - - "3000:3000" + - "5173:5173" environment: DEPLOY_MODE: compose depends_on: @@ -38,6 +39,7 @@ services: AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION} AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} + DANDI_API_KEY: ${DANDI_API_KEY} volumes: - ./results:/results - ./logs:/logs diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 365bb36..c411778 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,6 +10,6 @@ COPY . ./ # RUN yarn build -EXPOSE 3000 +EXPOSE 5173 -CMD ["yarn", "vite"] \ No newline at end of file +CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index c1615e0..5b8e9dd 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -66,4 +66,4 @@ "last 1 safari version" ] } -} +} \ No newline at end of file diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 861b04b..449734b 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -4,4 +4,12 @@ import react from '@vitejs/plugin-react-swc' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + server: { + watch: { + usePolling: true, + }, + host: true, // needed for the Docker Container port mapping to work + strictPort: true, + port: 5173, // replace this port with any number you want + }, })