fa
This commit is contained in:
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user