learning_ai_invt_trdg/docker-compose.yml
root f0a6ce09ff feat(web): Dockerize web app, wire to deployed backend
- Add web/Dockerfile (node:20 builder + nginx:alpine, port 3085)
- Add web service to docker-compose.yml with VITE_ build args
- Create web/.env and mobile/.env pointing to api.bytelyst.com
- Backend port mapping: 4025:4018 (4018 reserved by actiontrail)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 17:48:17 +00:00

44 lines
901 B
YAML

version: '3.9'
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
args:
GITEA_NPM_TOKEN: ${GITEA_NPM_TOKEN}
container_name: invttrdg-backend
env_file:
- .env
ports:
- '4025:4018'
networks:
- default
- platform_net
restart: unless-stopped
web:
build:
context: .
dockerfile: web/Dockerfile
args:
GITEA_NPM_TOKEN: ${GITEA_NPM_TOKEN}
VITE_PRODUCT_ID: invttrdg
VITE_PLATFORM_URL: https://api.bytelyst.com/platform/api
VITE_TRADING_API_URL: https://api.bytelyst.com/invttrdg/api
container_name: invttrdg-web
ports:
- '3085:3085'
networks:
- default
- platform_net
restart: unless-stopped
depends_on:
- backend
networks:
default: {}
platform_net:
external: true
name: learning_ai_common_plat_default