-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
85 lines (82 loc) · 3.59 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
85 lines (82 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# ═══════════════════════════════════════════════════════════════════════════════
# BrightChain Node — Development Docker Compose (with Azurite)
# ═══════════════════════════════════════════════════════════════════════════════
#
# Uses Azurite (Azure Storage emulator) as the block store backend instead of
# the local disk driver. This mirrors a production Azure Blob Storage setup.
#
# Usage:
# cp .env.production.example .env # fill in your values
# docker compose -f docker-compose.dev.yml build --no-cache
# docker compose -f docker-compose.dev.yml up -d
# docker compose -f docker-compose.dev.yml logs
# docker compose -f docker-compose.dev.yml down -v
#
# ═══════════════════════════════════════════════════════════════════════════════
services:
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
container_name: brightchain-azurite
restart: unless-stopped
command: azurite-blob --blobHost 0.0.0.0 --blobPort 10000 --loose --skipApiVersionCheck
ports:
# Expose Blob service for local tooling (Azure Storage Explorer, etc.)
- '10000:10000'
volumes:
- azurite-data:/data
healthcheck:
test: ['CMD', 'nc', '-z', '127.0.0.1', '10000']
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
brightchain-node:
image: ghcr.io/digital-defiance/brightchain-node:latest
build:
context: .
dockerfile: Dockerfile.dev
args:
FONTAWESOME_NPM_AUTH_TOKEN: ${FONTAWESOME_NPM_AUTH_TOKEN:-}
container_name: brightchain-node
restart: unless-stopped
depends_on:
azurite:
condition: service_healthy
env_file: .env.docker
environment:
# Dev defaults: skip spam filtering unless overridden in .env.docker
GATEWAY_TEST_SKIP_SPAM: ${GATEWAY_TEST_SKIP_SPAM:-true}
# Staging dir writable by node user (default /app/tmp is root-owned)
TEMP_UPLOAD_STAGING_DIR: ${TEMP_UPLOAD_STAGING_DIR:-/tmp/staging}
# Override block store to use Azure driver pointing at Azurite
BRIGHTCHAIN_BLOCKSTORE_TYPE: azure
BRIGHTCHAIN_BLOCKSTORE_PATH: /data/blockstore
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;
AZURE_STORAGE_CONTAINER_NAME: ${AZURE_STORAGE_CONTAINER_NAME:-brightchain-blocks}
ports:
# HTTP/WS — API + React frontend + WebSocket
- '${PORT:-3000}:3000'
# SMTP — inbound email
- '25:25'
# Submission — authenticated outbound relay
- '587:587'
volumes:
# DKIM private key (operator-provided)
- ./dkim:/etc/dkim:ro
# TLS certificates (optional — if using Let's Encrypt)
- ./certs:/etc/ssl/certs:ro
- ./private:/etc/ssl/private:ro
healthcheck:
test: ['CMD', 'nc', '-z', '127.0.0.1', '3000']
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
logging:
driver: json-file
options:
max-size: '50m'
max-file: '5'
volumes:
azurite-data:
driver: local