Compare commits

..

2 Commits

Author SHA1 Message Date
Gato 85350cfe86 feat: ajout du service olhar-api
Docker Compose calqué sur bonsai-api : PostgreSQL 16 + Spring Boot exposé
sur olhar.goutailler-olivier.com/api via Traefik, avec Watchtower activé.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 08:03:28 +02:00
Gato 2c420e3fce Update doc 2026-06-07 07:33:40 +02:00
2 changed files with 61 additions and 1 deletions
+7 -1
View File
@@ -7,7 +7,13 @@ docker compose -f gitea-compose.yml pull gitea
docker compose -f gitea-compose.yml up -d
docker exec gitea gitea --version
```
Build le runner
```bash
docker compose up -d --build act_runner
```
Relancer le runner
```bash
docker compose -f gitea-compose.yml restart act_runner
docker compose restart act_runner
```
+54
View File
@@ -0,0 +1,54 @@
name: olhar-api-stack
services:
db:
image: postgres:16-alpine
container_name: olhar-api-db
restart: unless-stopped
environment:
POSTGRES_DB: olhar
POSTGRES_USER: olhar
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
TZ: Europe/Paris
healthcheck:
test: ["CMD-SHELL", "pg_isready -U olhar -d olhar"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ~/Applications/data/olhar-api/db_data:/var/lib/postgresql/data
networks:
- olhar-api-net
api:
image: git.goutailler-olivier.com/gato/olhar-api:latest
container_name: olhar-api
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATASOURCE_URL: jdbc:postgresql://db:5432/olhar
DATASOURCE_USERNAME: olhar
DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD}
KEYCLOAK_JWKS_URI: https://auth.goutailler-olivier.com/realms/olhar/protocol/openid-connect/certs
CORS_ALLOWED_ORIGIN_PROD: https://olhar.goutailler-olivier.com
TZ: Europe/Paris
networks:
- olhar-api-net
- proxy
labels:
- traefik.enable=true
- traefik.http.routers.olhar-api.rule=Host(`olhar.goutailler-olivier.com`) && PathPrefix(`/api`)
- traefik.http.routers.olhar-api.entrypoints=websecure
- traefik.http.routers.olhar-api.tls.certresolver=le
- traefik.http.services.olhar-api.loadbalancer.server.port=8080
- traefik.docker.network=proxy
- com.centurylinklabs.watchtower.enable=true
networks:
olhar-api-net:
driver: bridge
proxy:
external: true
name: proxy