update the example compose file
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
f779a03ae5
commit
66c96ae312
@ -5,10 +5,17 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./app
|
context: ./app
|
||||||
args:
|
args:
|
||||||
|
# app URLs
|
||||||
|
WEBSITE_APP_URL_CLEAR: "http://localhost:7001"
|
||||||
|
WEBSITE_APP_URL_ONION: ""
|
||||||
|
WEBSITE_APP_URL_I2P: ""
|
||||||
|
# API URLs
|
||||||
|
WEBSITE_API_URL_CLEAR: "http://localhost:7002"
|
||||||
|
WEBSITE_API_URL_ONION: ""
|
||||||
|
WEBSITE_API_URL_I2P: ""
|
||||||
|
# other
|
||||||
WEBSITE_SOURCE_URL: "http://github.com/ngn13/website"
|
WEBSITE_SOURCE_URL: "http://github.com/ngn13/website"
|
||||||
WEBSITE_REPORT_URL: "http://github.com/ngn13/website/issues"
|
WEBSITE_REPORT_URL: "http://github.com/ngn13/website/issues"
|
||||||
WEBSITE_APP_URL: "http://localhost:7001"
|
|
||||||
WEBSITE_API_URL: "http://localhost:7002"
|
|
||||||
WEBSITE_DOC_URL: "http://doc:7003"
|
WEBSITE_DOC_URL: "http://doc:7003"
|
||||||
security_opt:
|
security_opt:
|
||||||
- "no-new-privileges:true"
|
- "no-new-privileges:true"
|
||||||
@ -16,10 +23,11 @@ services:
|
|||||||
- ALL
|
- ALL
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:7001:7001"
|
- "127.0.0.1:7001:7001"
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
- doc
|
- doc
|
||||||
|
read_only: true
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
api:
|
api:
|
||||||
container_name: "website_api"
|
container_name: "website_api"
|
||||||
@ -34,28 +42,28 @@ services:
|
|||||||
- "127.0.0.1:7002:7002"
|
- "127.0.0.1:7002:7002"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data.db:/api/data.db:rw
|
- ./data.db:/api/data.db:rw
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
WEBSITE_DEBUG: "false"
|
WEBSITE_DEBUG: "false"
|
||||||
WEBSITE_APP_URL: "http://localhost:7001/"
|
WEBSITE_APP_URL_CLEAR: "http://localhost:7001/"
|
||||||
WEBSITE_PASSWORD: "change_me"
|
WEBSITE_PASSWORD: "change_me"
|
||||||
WEBSITE_HOST: "0.0.0.0:7002"
|
WEBSITE_HOST: "0.0.0.0:7002"
|
||||||
WEBSITE_IP_HEADER: "X-Real-IP"
|
WEBSITE_IP_HEADER: "X-Real-IP"
|
||||||
WEBSITE_INTERVAL: "1h"
|
WEBSITE_INTERVAL: "1h"
|
||||||
WEBSITE_TIMEOUT: "15s"
|
WEBSITE_TIMEOUT: "15s"
|
||||||
WEBSITE_LIMIT: "5s"
|
WEBSITE_LIMIT: "5s"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
container_name: "website_doc"
|
container_name: "website_doc"
|
||||||
image: website_doc
|
image: website_doc
|
||||||
read_only: true
|
|
||||||
build:
|
build:
|
||||||
context: ./doc
|
context: ./doc
|
||||||
security_opt:
|
security_opt:
|
||||||
- "no-new-privileges:true"
|
- "no-new-privileges:true"
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
WEBSITE_HOST: "0.0.0.0:7003"
|
WEBSITE_HOST: "0.0.0.0:7003"
|
||||||
WEBSITE_DOCS_DIR: "./docs"
|
WEBSITE_DOCS_DIR: "./docs"
|
||||||
|
read_only: true
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user