first commit
This commit is contained in:
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
spota-proxy:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: spota-proxy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${APP_PORT:-8099}:80"
|
||||
environment:
|
||||
SPOTA_BASE_URL: "${SPOTA_BASE_URL:-https://spota.untan.ac.id/steven/API}"
|
||||
SPOTA_ALLOWED_ENDPOINTS: "${SPOTA_ALLOWED_ENDPOINTS:-login.php,getListTugasAkhir.php,getListMahasiswa.php,getListDosen.php,sendMail.php}"
|
||||
PROXY_TOKEN: "${PROXY_TOKEN:-}"
|
||||
CONNECT_TIMEOUT: "${CONNECT_TIMEOUT:-10}"
|
||||
REQUEST_TIMEOUT: "${REQUEST_TIMEOUT:-30}"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://localhost/healthz >/dev/null || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
Reference in New Issue
Block a user