Files
nene/compose.yaml

30 lines
733 B
YAML

version: '3.8'
services:
pocketbase:
build:
context: .
dockerfile: Dockerfile
target: pb_base
command: ["/pocketbase", "serve", "--http=0.0.0.0:8090", "--hooksDir=/pb_hooks"]
ports:
- "8090:8090"
volumes:
- ./pb_data:/pb_data
- ./backend/pb_migrations:/pb_migrations
- ./backend/pb_hooks:/pb_hooks
restart: unless-stopped
frontend:
image: node:20-alpine
working_dir: /app
# Podnosimy serwer z flaga host aby byl widoczny z zewnatrz
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
ports:
- "5173:5173"
volumes:
- ./frontend:/app
environment:
- VITE_PB_URL=http://localhost:8090
restart: unless-stopped