-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.dev2.yaml
More file actions
103 lines (98 loc) · 3.26 KB
/
docker-compose.dev2.yaml
File metadata and controls
103 lines (98 loc) · 3.26 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
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: tradetally-db-dev-new
environment:
POSTGRES_USER: ${DB_USER:-trader}
POSTGRES_PASSWORD: ${DB_PASSWORD:-trader_password}
POSTGRES_DB: ${DB_NAME:-tradetally}
volumes:
- postgres_data_dev-new:/var/lib/postgresql/data
ports:
- "5434:5432"
networks:
- trader-network-dev-new
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-trader} -d ${DB_NAME:-tradetally}"]
interval: 10s
timeout: 5s
retries: 5
tradetally:
image: potentialmidas/tradetally:nightly
container_name: tradetally-app-dev-new
depends_on:
postgres:
condition: service_healthy
environment:
# Backend environment variables
NODE_ENV: ${NODE_ENV:-development}
PORT: ${PORT:-3000}
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${DB_USER:-trader}
DB_PASSWORD: ${DB_PASSWORD:-trader_password}
DB_NAME: ${DB_NAME:-tradetally}
JWT_SECRET: ${JWT_SECRET:-your_jwt_secret_here}
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN:-7d}
# Email configuration (optional)
EMAIL_HOST: ${EMAIL_HOST:-smtp.gmail.com}
EMAIL_PORT: ${EMAIL_PORT:-587}
EMAIL_USER: ${EMAIL_USER:-}
EMAIL_PASS: ${EMAIL_PASS:-}
EMAIL_FROM: ${EMAIL_FROM:-noreply@tradetally.io}
# Frontend API URL - use relative path so it works on any port
VITE_API_URL: ${VITE_API_URL:-/api}
# CORS Configuration for Mobile Apps
FRONTEND_URL: ${FRONTEND_URL:-http://localhost:5173}
CORS_ORIGINS: ${CORS_ORIGINS:-}
# Mobile Support Configuration
ACCESS_TOKEN_EXPIRE: ${ACCESS_TOKEN_EXPIRE:-15m}
REFRESH_TOKEN_EXPIRE: ${REFRESH_TOKEN_EXPIRE:-30d}
MAX_DEVICES_PER_USER: ${MAX_DEVICES_PER_USER:-10}
ENABLE_DEVICE_TRACKING: ${ENABLE_DEVICE_TRACKING:-true}
# Analytics Configuration
VITE_ANALYTICS_DOMAIN: ${VITE_ANALYTICS_DOMAIN:-}
VITE_ANALYTICS_SITE_ID: ${VITE_ANALYTICS_SITE_ID:-}
# Registration Control
REGISTRATION_MODE: ${REGISTRATION_MODE:-open}
# External API Keys
FINNHUB_API_KEY: ${FINNHUB_API_KEY:-}
ALPHA_VANTAGE_API_KEY: ${ALPHA_VANTAGE_API_KEY:-}
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
ENABLE_AI_CUSIP_RESOLUTION: ${ENABLE_AI_CUSIP_RESOLUTION:-true}
PERPLEXITY_API_KEY: ${PERPLEXITY_API_KEY:-}
# Billing Configuration
BILLING_ENABLED: ${BILLING_ENABLED:-false}
ports:
- "8082:80"
- "3001:3000"
volumes:
- ./backend/src/logs:/app/backend/src/logs
- ./backend/src/data:/app/backend/src/data
# Mount source code for development (optional - enables hot reload if supported)
- ./backend/src:/app/backend/src
- ./frontend/src:/app/frontend/src
networks:
- trader-network-dev-new
restart: unless-stopped
# Optional: Adminer for database management
adminer:
image: adminer:latest
container_name: tradetally-adminer-dev-new
depends_on:
- postgres
ports:
- "8088:8080"
networks:
- trader-network-dev-new
environment:
ADMINER_DEFAULT_SERVER: postgres
restart: unless-stopped
networks:
trader-network-dev-new:
driver: bridge
volumes:
postgres_data_dev-new:
driver: local