Files
DanDing1Todo_Web/docker-compose.yml
Mr.Xia 2c4549ad79
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
fa
2026-02-26 21:29:54 +08:00

19 lines
378 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.

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "4000:3000"
volumes:
- todos-data:/app/data
environment:
- NODE_ENV=production
- DATA_DIR=/app/data
# 设置访问密码(可自定义,默认为 stark123
- AUTH_PASSWORD=${AUTH_PASSWORD:-stark123}
restart: always
volumes:
todos-data: