mirror of
				https://github.com/9technologygroup/patchmon.net.git
				synced 2025-11-04 05:53:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: patchmon
 | 
						|
 | 
						|
services:
 | 
						|
  database:
 | 
						|
    image: postgres:17-alpine
 | 
						|
    restart: unless-stopped
 | 
						|
    environment:
 | 
						|
      POSTGRES_DB: patchmon_db
 | 
						|
      POSTGRES_USER: patchmon_user
 | 
						|
      POSTGRES_PASSWORD: # CREATE A STRONG PASSWORD AND PUT IT HERE
 | 
						|
    volumes:
 | 
						|
      - postgres_data:/var/lib/postgresql/data
 | 
						|
    healthcheck:
 | 
						|
      test: ["CMD-SHELL", "pg_isready -U patchmon_user -d patchmon_db"]
 | 
						|
      interval: 3s
 | 
						|
      timeout: 5s
 | 
						|
      retries: 7
 | 
						|
 | 
						|
  backend:
 | 
						|
    image: ghcr.io/patchmon/patchmon-backend:latest
 | 
						|
    restart: unless-stopped
 | 
						|
    # See PatchMon Docker README for additional environment variables and configuration instructions
 | 
						|
    environment:
 | 
						|
      LOG_LEVEL: info
 | 
						|
      DATABASE_URL: postgresql://patchmon_user:REPLACE_YOUR_POSTGRES_PASSWORD_HERE@database:5432/patchmon_db
 | 
						|
      JWT_SECRET: # CREATE A STRONG SECRET AND PUT IT HERE - Generate with 'openssl rand -hex 64'
 | 
						|
      SERVER_PROTOCOL: http
 | 
						|
      SERVER_HOST: localhost
 | 
						|
      SERVER_PORT: 3000
 | 
						|
      CORS_ORIGIN: http://localhost:3000
 | 
						|
    volumes:
 | 
						|
      - agent_files:/app/agents
 | 
						|
    depends_on:
 | 
						|
      database:
 | 
						|
        condition: service_healthy
 | 
						|
 | 
						|
  frontend:
 | 
						|
    image: ghcr.io/patchmon/patchmon-frontend:latest
 | 
						|
    restart: unless-stopped
 | 
						|
    ports:
 | 
						|
      - "3000:3000"
 | 
						|
    depends_on:
 | 
						|
      backend:
 | 
						|
        condition: service_healthy
 | 
						|
 | 
						|
volumes:
 | 
						|
  postgres_data:
 | 
						|
  agent_files:
 |