50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
# myinfomate-landing
|
|
|
|
Site vitrine de la solution MyInfoMate (Next.js 16 / Tailwind CSS v4).
|
|
|
|
## Dev local
|
|
|
|
```bash
|
|
npm install
|
|
npm run dev # http://localhost:3000
|
|
npm run build
|
|
npm run lint
|
|
```
|
|
|
|
## Déploiement
|
|
|
|
### 1. Builder et pusher l'image
|
|
|
|
```bash
|
|
docker build -t registry.unov.be/myinfomate/landing:latest .
|
|
docker push registry.unov.be/myinfomate/landing:latest
|
|
```
|
|
|
|
### 2. Sur le VPS — mettre à jour le conteneur
|
|
|
|
```bash
|
|
docker pull registry.unov.be/myinfomate/landing:latest
|
|
docker compose up -d myinfomate-landing
|
|
```
|
|
|
|
### Config Traefik (docker-compose sur le VPS)
|
|
|
|
```yaml
|
|
myinfomate-landing:
|
|
container_name: "myinfomate-landing"
|
|
image: registry.unov.be/myinfomate/landing:latest
|
|
networks:
|
|
- web
|
|
restart: always
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.landing.rule=Host(`myinfomate.be`)"
|
|
- "traefik.http.routers.landing.entrypoints=web"
|
|
- "traefik.http.routers.landing.middlewares=redirect@file"
|
|
- "traefik.http.routers.landing-secured.rule=Host(`myinfomate.be`)"
|
|
- "traefik.http.routers.landing-secured.entrypoints=web-secured"
|
|
- "traefik.http.routers.landing-secured.tls.certresolver=mytlschallenge"
|
|
```
|
|
|
|
Le certificat SSL est géré automatiquement par Traefik (Let's Encrypt).
|