forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

compose.yaml27 lines, 775 bytesHistoryRawDownload
1services:
2 frontend:
3 build:
4 context: .
5 dockerfile: Containerfile
6 image: localhost/hezarfen-frontend:latest
7 container_name: hezarfen-frontend
8 ports:
9 - "5173:5173"
10 environment:
11 PORT: "5173"
12 # Backend on the shared compose network; server.ts proxies /api here.
13 BACKEND_ORIGIN: "http://hezarfen-backend:8080"
14 restart: unless-stopped
15 healthcheck:
16 # Bun-based: the slim runtime image ships no curl.
17 test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:5173/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
18 interval: 30s
19 timeout: 5s
20 retries: 3
21 start_period: 10s
22 networks:
23 - hezarfen_backend_default
24
25networks:
26 hezarfen_backend_default:
27 external: true