Build frontend image for local compose (#884)

This commit is contained in:
Sergey Mankovsky
2026-02-25 23:34:33 +01:00
committed by GitHub
parent f428b9e3f2
commit 4fb60955d4

View File

@@ -83,25 +83,21 @@ services:
ports: ports:
- 6379:6379 - 6379:6379
web: web:
image: node:22-alpine build:
context: ./www
dockerfile: Dockerfile
ports: ports:
- "3000:3000" - "3000:3000"
command: sh -c "corepack enable && pnpm install && pnpm dev"
restart: unless-stopped
working_dir: /app
volumes:
- ./www:/app/
- /app/node_modules
- next_cache:/app/.next
env_file: env_file:
- ./www/.env.local - ./www/.env.local
environment: environment:
- NODE_ENV=development NODE_ENV: development
- SERVER_API_URL=http://host.docker.internal:1250 SERVER_API_URL: http://host.docker.internal:1250
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
depends_on: depends_on:
- server redis:
condition: service_started
postgres: postgres:
image: postgres:17 image: postgres:17