Files
wzdj/docker-compose.yml

27 lines
788 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 玩值电竞App - 网站容器(仅 Web不新建 MongoDB
# 推荐使用 website 编排:在神射手目录 docker compose up -d玩值电竞端口 3001
# 本文件为单独起玩值时用;只连现有 MongoDBdatacenter_mongodb 27017
# 启动docker compose up -d 访问http://localhost:3001
name: wanzhi-website
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_TIME: ${BUILD_TIME:-}
image: wanzhi-app:latest
container_name: wanzhi-web
restart: unless-stopped
ports:
- "3001:3000"
environment:
MONGODB_URI: mongodb://host.docker.internal:27017
NODE_ENV: production
extra_hosts:
- "host.docker.internal:host-gateway"
labels:
- "com.wanzhi.group=网站"