Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- web:
- image: haedlessdev/portnote:latest
- ports:
- - "3000:3000"
- environment:
- JWT_SECRET: RANDOM_SECRET # Replace with a secure random string
- USER_SECRET: RANDOM_SECRET # Replace with a secure random string
- LOGIN_USERNAME: username # Replace with a username
- LOGIN_PASSWORD: mypassword # Replace with a custom password
- DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
- agent:
- image: haedlessdev/portnote-agent:latest
- environment:
- # DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
- DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres?sslmode=disable" # NEW - Added ?sslmode=disable
- depends_on: # NEW
- - db # NEW - Add this line
- - web # NEW - Add this line (optional but good practice if agent relies on web being up too)
- db:
- image: postgres:17
- restart: always
- environment:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- POSTGRES_DB: postgres
- volumes:
- - postgres_data:/var/lib/postgresql/data
- volumes:
- postgres_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement