Guest User

docker-compose.yml

a guest
Jan 9th, 2026
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. textversion: '3.8'
  2.  
  3. services:
  4. db:
  5. image: postgres:14
  6. container_name: hive-pal-db
  7. restart: unless-stopped
  8. volumes:
  9. - ./postgres-data:/var/lib/postgresql/data
  10. environment:
  11. POSTGRES_USER: ${DB_USER}
  12. POSTGRES_PASSWORD: ${DB_PASSWORD}
  13. POSTGRES_DB: ${DB_NAME}
  14. healthcheck:
  15. test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
  16. interval: 10s
  17. timeout: 5s
  18. retries: 5
  19.  
  20. backend:
  21. image: ghcr.io/martinhrvn/hive-pal-backend:latest
  22. container_name: hive-pal-backend
  23. restart: unless-stopped
  24. depends_on:
  25. db:
  26. condition: service_healthy
  27. ports:
  28. - "3000:3000"
  29. environment:
  30. DATABASE_URL: postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}
  31. JWT_SECRET: ${JWT_SECRET}
  32. PORT: 3000
  33. ADMIN_EMAIL: ${ADMIN_EMAIL}
  34. ADMIN_PASSWORD: ${ADMIN_PASSWORD}
  35. CORS_ENABLED: "true"
  36. CORS_ORIGIN: "http://${HOST_IP}:${APP_PORT}"
  37. API_URL: "http://${HOST_IP}:3000"
  38. FRONTEND_URL: "http://${HOST_IP}:${APP_PORT}"
  39. CLIENT_URL: "http://${HOST_IP}:${APP_PORT}"
  40.  
  41. frontend:
  42. image: ghcr.io/martinhrvn/hive-pal-frontend:latest
  43. container_name: hive-pal-frontend
  44. restart: unless-stopped
  45. ports:
  46. - "${APP_PORT}:80"
  47. depends_on:
  48. - backend
  49. volumes:
  50. - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
  51. environment:
  52. VITE_API_URL: "http://${HOST_IP}:${APP_PORT}"
  53.  
Advertisement
Add Comment
Please, Sign In to add comment