docker-compose.yaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. services:
  2. # CDK Mint service
  3. mintd:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. container_name: mint
  8. ports:
  9. - "8085:8085"
  10. environment:
  11. - CDK_MINTD_URL=https://example.com
  12. - CDK_MINTD_LN_BACKEND=fakewallet
  13. - CDK_MINTD_LISTEN_HOST=0.0.0.0
  14. - CDK_MINTD_LISTEN_PORT=8085
  15. - CDK_MINTD_MNEMONIC=
  16. # Database configuration - choose one:
  17. # Option 1: SQLite (embedded, no additional setup needed)
  18. - CDK_MINTD_DATABASE=sqlite
  19. # Option 2: ReDB (embedded, no additional setup needed)
  20. # - CDK_MINTD_DATABASE=redb
  21. # Option 3: PostgreSQL (requires postgres service, enable with: docker-compose --profile postgres up)
  22. # - CDK_MINTD_DATABASE=postgres
  23. # - CDK_MINTD_DATABASE_URL=postgresql://cdk_user:cdk_password@postgres:5432/cdk_mint
  24. # Cache configuration
  25. - CDK_MINTD_CACHE_BACKEND=memory
  26. # For Redis cache (requires redis service, enable with: docker-compose --profile redis up):
  27. # - CDK_MINTD_CACHE_REDIS_URL=redis://redis:6379
  28. # - CDK_MINTD_CACHE_REDIS_KEY_PREFIX=cdk-mintd
  29. command: ["cdk-mintd"]
  30. # Uncomment when using PostgreSQL:
  31. # depends_on:
  32. # - postgres
  33. # PostgreSQL database service
  34. # Enable with: docker-compose --profile postgres up
  35. # postgres:
  36. # image: postgres:16-alpine
  37. # container_name: mint_postgres
  38. # restart: unless-stopped
  39. # profiles:
  40. # - postgres
  41. # environment:
  42. # - POSTGRES_USER=cdk_user
  43. # - POSTGRES_PASSWORD=cdk_password
  44. # - POSTGRES_DB=cdk_mint
  45. # - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
  46. # ports:
  47. # - "5432:5432"
  48. # volumes:
  49. # - postgres_data:/var/lib/postgresql/data
  50. # healthcheck:
  51. # test: ["CMD-SHELL", "pg_isready -U cdk_user -d cdk_mint"]
  52. # interval: 10s
  53. # timeout: 5s
  54. # retries: 5
  55. # Redis cache service (optional)
  56. # Enable with: docker-compose --profile redis up
  57. # redis:
  58. # image: redis:7-alpine
  59. # container_name: mint_redis
  60. # restart: unless-stopped
  61. # profiles:
  62. # - redis
  63. # ports:
  64. # - "6379:6379"
  65. # volumes:
  66. # - redis_data:/data
  67. # command: redis-server --save 60 1 --loglevel warning
  68. # healthcheck:
  69. # test: ["CMD", "redis-cli", "ping"]
  70. # interval: 10s
  71. # timeout: 3s
  72. # retries: 5
  73. volumes:
  74. postgres_data:
  75. driver: local
  76. # redis_data:
  77. # driver: local