Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- textversion: '3.8'
- services:
- db:
- image: postgres:14
- container_name: hive-pal-db
- restart: unless-stopped
- volumes:
- - ./postgres-data:/var/lib/postgresql/data
- environment:
- POSTGRES_USER: ${DB_USER}
- POSTGRES_PASSWORD: ${DB_PASSWORD}
- POSTGRES_DB: ${DB_NAME}
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
- interval: 10s
- timeout: 5s
- retries: 5
- backend:
- image: ghcr.io/martinhrvn/hive-pal-backend:latest
- container_name: hive-pal-backend
- restart: unless-stopped
- depends_on:
- db:
- condition: service_healthy
- ports:
- - "3000:3000"
- environment:
- DATABASE_URL: postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}
- JWT_SECRET: ${JWT_SECRET}
- PORT: 3000
- ADMIN_EMAIL: ${ADMIN_EMAIL}
- ADMIN_PASSWORD: ${ADMIN_PASSWORD}
- CORS_ENABLED: "true"
- CORS_ORIGIN: "http://${HOST_IP}:${APP_PORT}"
- API_URL: "http://${HOST_IP}:3000"
- FRONTEND_URL: "http://${HOST_IP}:${APP_PORT}"
- CLIENT_URL: "http://${HOST_IP}:${APP_PORT}"
- frontend:
- image: ghcr.io/martinhrvn/hive-pal-frontend:latest
- container_name: hive-pal-frontend
- restart: unless-stopped
- ports:
- - "${APP_PORT}:80"
- depends_on:
- - backend
- volumes:
- - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- environment:
- VITE_API_URL: "http://${HOST_IP}:${APP_PORT}"
Advertisement
Add Comment
Please, Sign In to add comment