docker
This commit is contained in:
1 parent
8385db6ebf
commit
5af2d78328
4 files changed
+106
No files matched your search
@@ -13,6 +13,21 @@ npm run preview # serve dist/
|
||||
npm run check # Astro + TypeScript check
|
||||
```
|
||||
|
||||
## Docker / Dokploy
|
||||
|
||||
The `Dockerfile` builds the site with Node and serves `dist/` from nginx on port 80
|
||||
(config in `docker/nginx.conf`: clean URLs without trailing slash, 404 page, gzip, long caching for
|
||||
`/_astro/`, health check at `/healthz`).
|
||||
|
||||
```sh
|
||||
docker build -t ciphercell .
|
||||
docker run --rm -p 8080:80 ciphercell # http://localhost:8080
|
||||
```
|
||||
|
||||
In Dokploy: create an Application from this repository, set Build Type to **Dockerfile**
|
||||
(path `Dockerfile`), and under Domains add the domain with container port **80** and HTTPS on.
|
||||
TLS is handled by Dokploy's Traefik.
|
||||
|
||||
## Where things live
|
||||
|
||||
| Path | Purpose |
|
||||
|
||||
Reference in new issue
Block a user