34733c121c
Build & Push Docker Images / test-backend (push) Successful in 49s
Build & Push Docker Images / test-frontend (push) Successful in 58s
Build & Push Docker Images / build-backend (push) Failing after 1m7s
Build & Push Docker Images / build-frontend (push) Successful in 1m13s
Build context was ./backend so API/ was never copied into the image. server.js imports ../API/index.js which resolves to /API/index.js at runtime. Expand build context to project root and explicitly copy API/ to /API/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
923 B
YAML
40 lines
923 B
YAML
services:
|
|
redis:
|
|
image: redis:alpine
|
|
restart: unless-stopped
|
|
|
|
backend:
|
|
image: git.hacecalor.net/ichitux/farmafinder-backend:latest
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
PORT: "3001"
|
|
NODE_ENV: production
|
|
SESSION_SECRET: ${SESSION_SECRET:-change-me-in-production}
|
|
CORS_ORIGIN: http://localhost:3000
|
|
REDIS_HOST: redis
|
|
REDIS_PORT: "6379"
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD:-}
|
|
DATABASE_PATH: /app/data/database.sqlite
|
|
FARMACIAS_WEBHOOK_URL: ${FARMACIAS_WEBHOOK_URL:-}
|
|
volumes:
|
|
- backend_data:/app/data
|
|
depends_on:
|
|
- redis
|
|
|
|
frontend:
|
|
image: git.hacecalor.net/ichitux/farmafinder-frontend:latest
|
|
build: ./frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:80"
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
backend_data:
|