port env
This commit is contained in:
@@ -4,11 +4,10 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "{$PORT}:{$PORT}"
|
||||
depends_on:
|
||||
- mailpit
|
||||
environment:
|
||||
CAIRNQUIRE_SERVER_ADDR: ":8080"
|
||||
CAIRNQUIRE_DATABASE_PATH: "/workspace/data/db.sqlite"
|
||||
CAIRNQUIRE_CONTENT_SOURCE_DIR: "/workspace/content"
|
||||
CAIRNQUIRE_CONTENT_STORE_DIR: "/workspace/data/files"
|
||||
@@ -21,7 +20,7 @@ services:
|
||||
- ./content:/workspace/content
|
||||
- ./data:/workspace/data
|
||||
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
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user