37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
|
|
version: '3.4'
|
|||
|
|
|
|||
|
|
services:
|
|||
|
|
new-api-custom:
|
|||
|
|
build:
|
|||
|
|
context: .
|
|||
|
|
dockerfile: Dockerfile
|
|||
|
|
image: new-api-custom:latest
|
|||
|
|
container_name: new-api-custom
|
|||
|
|
restart: always
|
|||
|
|
command: --log-dir /app/logs
|
|||
|
|
ports:
|
|||
|
|
- "3099:3000" # (3099<39><39>
|
|||
|
|
volumes:
|
|||
|
|
- ./data:/data # q<><71>pn<70>U
|
|||
|
|
- ./logs-custom:/app/logs # (<28><><EFBFBD><EFBFBD><EFBFBD>U
|
|||
|
|
environment:
|
|||
|
|
- SQL_DSN=root:123456@tcp(mysql:3306)/new-api # ޥ<> <09>mysql<71>h
|
|||
|
|
- REDIS_CONN_STRING=redis://redis # ޥ<> <09>redis<69>h
|
|||
|
|
- TZ=Asia/Shanghai
|
|||
|
|
- ERROR_LOG_ENABLED=true
|
|||
|
|
# - STREAMING_TIMEOUT=120
|
|||
|
|
# - SESSION_SECRET=random_string # <20><> |