-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
28 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
services:
notion2api:
build:
context: .
dockerfile: ${N2A_DOCKERFILE:-Dockerfile}
image: ${N2A_IMAGE:-notion2api:latest}
container_name: ${N2A_CONTAINER_NAME:-notion2api}
restart: ${N2A_RESTART_POLICY:-unless-stopped}
ports:
- "${N2A_PORT:-8787}:8787"
volumes:
- ${N2A_CONFIG_FILE:-./config.docker.json}:/app/config/config.json:ro
- ${N2A_DATA_DIR:-./data}:/app/data
environment:
TZ: ${TZ:-Asia/Shanghai}
N2A_PROXY_MODE: ${N2A_PROXY_MODE:-}
N2A_PROXY_URL: ${N2A_PROXY_URL:-}
N2A_PROXY_HTTP_URL: ${N2A_PROXY_HTTP_URL:-}
N2A_PROXY_HTTPS_URL: ${N2A_PROXY_HTTPS_URL:-}
N2A_RESIN_ENABLED: ${N2A_RESIN_ENABLED:-}
N2A_RESIN_URL: ${N2A_RESIN_URL:-}
N2A_RESIN_PLATFORM: ${N2A_RESIN_PLATFORM:-}
N2A_RESIN_MODE: ${N2A_RESIN_MODE:-}
HTTP_PROXY: ${HTTP_PROXY:-}
HTTPS_PROXY: ${HTTPS_PROXY:-}
ALL_PROXY: ${ALL_PROXY:-}
NO_PROXY: ${NO_PROXY:-}
command: ["./notion2api", "--config", "/app/config/config.json"]