JewelryMall/docker-compose.yml
2026-03-05 01:05:46 +08:00

28 lines
632 B
YAML

services:
server:
build: ./server
ports:
- "2850:3000"
environment:
DB_HOST: ${DB_HOST:-192.168.195.15}
DB_PORT: ${DB_PORT:-3306}
DB_USER: ${DB_USER:-root}
DB_PASSWORD: ${DB_PASSWORD:-root123456}
DB_NAME: ${DB_NAME:-jewelry_mall}
WX_APPID: ${WX_APPID:-wx58b02b73d9c26c10}
WX_SECRET: ${WX_SECRET:-3b6cdaffa9ef92d877f79ebd739b47b0}
JWT_SECRET: ${JWT_SECRET:-jewelry-mall-jwt-secret}
PORT: 3000
volumes:
- server_uploads:/app/uploads
admin:
build: ./admin
ports:
- "2851:80"
depends_on:
- server
volumes:
server_uploads: