port env
This commit is contained in:
@@ -4,11 +4,10 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "{$PORT}:{$PORT}"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mailpit
|
- mailpit
|
||||||
environment:
|
environment:
|
||||||
CAIRNQUIRE_SERVER_ADDR: ":8080"
|
|
||||||
CAIRNQUIRE_DATABASE_PATH: "/workspace/data/db.sqlite"
|
CAIRNQUIRE_DATABASE_PATH: "/workspace/data/db.sqlite"
|
||||||
CAIRNQUIRE_CONTENT_SOURCE_DIR: "/workspace/content"
|
CAIRNQUIRE_CONTENT_SOURCE_DIR: "/workspace/content"
|
||||||
CAIRNQUIRE_CONTENT_STORE_DIR: "/workspace/data/files"
|
CAIRNQUIRE_CONTENT_STORE_DIR: "/workspace/data/files"
|
||||||
@@ -21,7 +20,7 @@ services:
|
|||||||
- ./content:/workspace/content
|
- ./content:/workspace/content
|
||||||
- ./data:/workspace/data
|
- ./data:/workspace/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "--fail", "http://127.0.0.1:8080/health"]
|
test: ["CMD", "curl", "--fail", "http://127.0.0.1:{$PORT}/health"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user