41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
services:
|
|
pocketbase:
|
|
image: ghcr.io/muchobien/pocketbase:latest
|
|
container_name: nomadflow-pb
|
|
ports:
|
|
- "8090:8090"
|
|
volumes:
|
|
- ./pocketbase/pb_data:/pb_data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
backend:
|
|
build: ./backend
|
|
container_name: nomadflow-api
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- POCKETBASE_URL=http://pocketbase:8090
|
|
- POCKETBASE_ADMIN_EMAIL=admin@nomadflow.io
|
|
- POCKETBASE_ADMIN_PASSWORD=admin123456
|
|
- CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
|
|
depends_on:
|
|
pocketbase:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: nomadflow-web
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|