Files
assetx/docker-compose.yml
default 2ee4553b71 init: 初始化 AssetX 项目仓库
包含 webapp(Next.js 用户端)、webapp-back(Go 后端)、
antdesign(管理后台)、landingpage(营销落地页)、
数据库 SQL 和配置文件。
2026-03-27 11:26:43 +00:00

67 lines
1.3 KiB
YAML

services:
backend:
build:
context: ./webapp-back
dockerfile: Dockerfile
container_name: assetx-backend
restart: unless-stopped
env_file:
- ./webapp-back/.env
environment:
DB_HOST: 1Panel-mysql-sCQS
DB_PORT: 3306
REDIS_HOST: 1Panel-redis-gMVC
ports:
- "8082:8080"
networks:
- 1panel-network
- default
webapp:
build:
context: ./webapp
dockerfile: Dockerfile
args:
BACKEND_URL: http://backend:8080
container_name: assetx-webapp
restart: unless-stopped
depends_on:
- backend
environment:
BACKEND_URL: http://backend:8080
PORT: 3010
ports:
- "3010:3010"
networks:
- 1panel-network
- default
antdesign:
build:
context: ./antdesign
dockerfile: Dockerfile
container_name: assetx-antdesign
restart: unless-stopped
depends_on:
- backend
ports:
- "10502:10502"
networks:
- 1panel-network
- default
landingpage:
build:
context: ./landingpage
dockerfile: Dockerfile
container_name: assetx-landingpage
restart: unless-stopped
environment:
PORT: 3011
ports:
- "3011:3011"
networks:
1panel-network:
external: true