mirror of
https://github.com/sitn/docsonmaps.git
synced 2026-12-04 06:28:42 +00:00
Read-only mirror of https://github.com/sitn/docsonmaps — Canton de Neuchâtel. Issues & pull requests at the source.
- TypeScript 51.8%
- HTML 40.2%
- CSS 3.6%
- JavaScript 3.4%
- Dockerfile 0.5%
- Other 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| buildtools | ||
| src | ||
| .dockerignore | ||
| .eslintrc.js | ||
| .gitattributes | ||
| .gitignore | ||
| docker-compose.yml | ||
| docker-entrypoint.sh | ||
| Dockerfile | ||
| httpd.conf | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.js | ||
Getting started
Create src/.env.development:
VITE_API_URL=https://sitn.ne.ch/apps_prepub/health
Then
npm i
npm start
Run the image locally
docker compose build
docker run --rm -p 5021:8080 -e VITE_API_URL=https://sitn.ne.ch/apps_prepub/health ne2harbor.ne.ch/sgrf/sitn-medecins:latest
Then open http://localhost:5021/
Deploy
Don't forget to add to version.html what you've done.
Start by building and pushing:
$env:TAG="1.0.<replace with version>";
docker compose build
docker compose push
Set the DOCKER_HOST environment variable and launch the build/run :
$env:DOCKER_HOST="<PATH_TO_REMOTE_HOST>"
docker compose pull
docker compose up -d
With docker compose up, pass VITE_API_URL through an environment: or env_file: entry in
docker-compose.yaml