Skip to content

Instantly share code, notes, and snippets.

@three-ball
Created September 21, 2025 17:52
Show Gist options
  • Save three-ball/01ad5c77f53e1f6209ee3e7dad2642f7 to your computer and use it in GitHub Desktop.
Save three-ball/01ad5c77f53e1f6209ee3e7dad2642f7 to your computer and use it in GitHub Desktop.
# OBP_DB_PORT=5434 OBP_API_PORT=8081 docker compose up
version: '3'
networks:
obp-network:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/16
# obp-db service configuration
services:
obp-db:
container_name: obp-db
hostname: obp-pg.local
image: postgres:14.19
restart: always
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 256M
cpus: '0.25'
environment:
- POSTGRES_USER=obp_admin
- POSTGRES_PASSWORD=mtOgJwv7ry3PVUBW
- POSTGRES_DB=opb
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${OBP_DB_PORT:-5333}:5432"
networks:
- obp-network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d postgres" ]
interval: 30s
timeout: 10s
retries: 5
# obp-api service configuration
obp-api:
container_name: obp-api
hostname: obp-api.local
image: openbankproject/obp-api:latest
restart: unless-stopped
deploy:
resources:
limits:
memory: 1G
cpus: '1.0'
reservations:
memory: 512M
cpus: '0.5'
ports:
- "${OBP_API_PORT:-8080}:8080"
networks:
- obp-network
volumes:
- obp_logs:/opt/obp/logs
environment:
- OBP_CONNECTOR=mapped
- OBP_HOSTNAME=http://localhost:${OBP_API_PORT:-8080}
- OBP_DB_URL=jdbc:postgresql://obp-pg.local:5432/opb?user=obp_admin&password=mtOgJwv7ry3PVUBW
- OBP_AUTHUSER_SKIPEMAILVALIDATION=true
- OBP_SUPER_ADMIN_USER_IDS=26170288-5311-4eef-b878-838b46d0496c
- OBP_ALLOW_SANDBOX_ACCOUNT_CREATION=true
- OPB_ALLOW_SANDBOX_DATA_IMPORT=true
- OPB_CONSUMERS_ENABLED_BY_DEFAULT=true
depends_on:
obp-db:
condition: service_healthy
volumes:
postgres_data:
driver: local
obp_logs:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment