30 lines
648 B
YAML
30 lines
648 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
server:
|
|
build: ./server
|
|
ports:
|
|
- "3000: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:
|
|
- "8080:80"
|
|
depends_on:
|
|
- server
|
|
|
|
volumes:
|
|
server_uploads:
|