Advertisement
Guest User

Untitled

a guest
May 12th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.11 KB | None | 0 0
  1. services:
  2.   web:
  3.     image: haedlessdev/portnote:latest
  4.     ports:
  5.      - "3000:3000"
  6.     environment:
  7.       JWT_SECRET: RANDOM_SECRET # Replace with a secure random string
  8.       USER_SECRET: RANDOM_SECRET # Replace with a secure random string
  9.       LOGIN_USERNAME: username # Replace with a username
  10.       LOGIN_PASSWORD: mypassword # Replace with a custom password
  11.       DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
  12.  
  13.   agent:
  14.     image: haedlessdev/portnote-agent:latest
  15.     environment:
  16.      # DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
  17.       DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres?sslmode=disable" # NEW - Added ?sslmode=disable
  18.     depends_on: # NEW
  19.       - db # NEW - Add this line
  20.       - web # NEW - Add this line (optional but good practice if agent relies on web being up too)
  21.      
  22.   db:
  23.     image: postgres:17
  24.     restart: always
  25.     environment:
  26.       POSTGRES_USER: postgres
  27.       POSTGRES_PASSWORD: postgres
  28.       POSTGRES_DB: postgres
  29.     volumes:
  30.      - postgres_data:/var/lib/postgresql/data
  31.  
  32. volumes:
  33.  postgres_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement