-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.override.yml.example
More file actions
128 lines (115 loc) · 4.44 KB
/
Copy pathdocker-compose.override.yml.example
File metadata and controls
128 lines (115 loc) · 4.44 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# =============================================================================
# Nivo - Docker Compose Override Example
# =============================================================================
#
# Copy this file to docker-compose.override.yml to enable local development mode.
#
# cp docker-compose.override.yml.example docker-compose.override.yml
#
# The override file exposes ports for local debugging and uses development
# defaults for environment variables.
#
# Customize as needed for your local setup.
#
# =============================================================================
services:
# Expose database for local tools (pgAdmin, DataGrip, DBeaver, etc.)
postgres:
ports:
- "${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-nivo_dev_password}
# Expose Redis for local debugging
redis:
ports:
- "${REDIS_PORT:-6379}:6379"
command: >
redis-server
--appendonly yes
--requirepass ${REDIS_PASSWORD:-nivo_redis_dev}
--maxmemory 128mb
--maxmemory-policy allkeys-lru
# Expose all backend services for direct access during development
identity-service:
ports:
- "${IDENTITY_PORT:-8080}:8080"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
REDIS_URL: redis://:${REDIS_PASSWORD:-nivo_redis_dev}@redis:6379/0
JWT_SECRET: ${JWT_SECRET:-dev-secret-key-change-in-production}
ledger-service:
ports:
- "${LEDGER_PORT:-8081}:8081"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
JWT_SECRET: ${JWT_SECRET:-dev-secret-key-change-in-production}
rbac-service:
ports:
- "${RBAC_PORT:-8082}:8082"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
JWT_SECRET: ${JWT_SECRET:-dev-secret-key-change-in-production}
wallet-service:
ports:
- "${WALLET_PORT:-8083}:8083"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
JWT_SECRET: ${JWT_SECRET:-dev-secret-key-change-in-production}
transaction-service:
ports:
- "${TRANSACTION_PORT:-8084}:8084"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
JWT_SECRET: ${JWT_SECRET:-dev-secret-key-change-in-production}
risk-service:
ports:
- "${RISK_PORT:-8085}:8085"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
notification-service:
ports:
- "${NOTIFICATION_PORT:-8087}:8087"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
simulation-service:
ports:
- "${SIMULATION_PORT:-8086}:8086"
environment:
ENVIRONMENT: development
DATABASE_URL: postgres://${POSTGRES_USER:-nivo}:${POSTGRES_PASSWORD:-nivo_dev_password}@postgres:5432/${POSTGRES_DB:-nivo}?sslmode=disable
AUTO_START_SIMULATION: "true"
gateway:
ports:
- "${GATEWAY_PORT:-8000}:8000"
environment:
ENVIRONMENT: development
JWT_SECRET: ${JWT_SECRET:-dev-secret-key-change-in-production}
# Frontend with local nginx config (no SSL)
# Access: http://localhost (user app), http://localhost:8081 (admin app)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost/api
ports:
- "80:80"
- "8090:8080" # Admin app on 8090 (8080 used by identity)
volumes:
- ./frontend/nginx-local.conf:/etc/nginx/nginx.conf:ro
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost/nginx-health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
# Certbot not needed for local dev
certbot:
profiles:
- production