Use PORT as proxyless host port
This commit is contained in:
@@ -35,7 +35,7 @@ services:
|
||||
container_name: synapsis-app
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:${APP_HOST_PORT:-3000}:3000"
|
||||
- "127.0.0.1:${PORT:-3000}:${PORT:-3000}"
|
||||
environment:
|
||||
DATABASE_URL: postgresql://${DB_USER:-synapsis}:${DB_PASSWORD:-changeme}@postgres:5432/${DB_NAME:-synapsis}
|
||||
AUTH_SECRET: ${AUTH_SECRET}
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
ALLOW_LOCALHOST: ${ALLOW_LOCALHOST:-}
|
||||
ADMIN_EMAILS: ${ADMIN_EMAILS}
|
||||
BOT_MAX_PER_USER: ${BOT_MAX_PER_USER:-5}
|
||||
PORT: "3000"
|
||||
PORT: ${PORT:-3000}
|
||||
NODE_ENV: production
|
||||
volumes:
|
||||
- uploads_data:/app/uploads
|
||||
@@ -55,7 +55,7 @@ services:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:3000/api/health || exit 1"]
|
||||
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:${PORT:-3000}/api/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user