This commit is contained in:
2026-01-05 15:15:50 +01:00
parent 12ff5ea637
commit 4076687f37
2 changed files with 37 additions and 44 deletions

View File

@@ -107,6 +107,18 @@ services:
expose: expose:
- "8000" - "8000"
cron:
image: tradon/tradon
container_name: tradon-cron
depends_on:
- postgres
environment:
DB_HOSTNAME: postgres
DB_PASSWORD: dsproject
volumes:
- /root/tradon/source/prod:/usr/local/lib/python3.11/dist-packages/trytond
command: ["trytond-cron", "-d", "tradon"]
tryton-dev: tryton-dev:
image: tradon/tradon image: tradon/tradon
container_name: tradon-dev container_name: tradon-dev
@@ -116,7 +128,7 @@ services:
DB_HOSTNAME: postgres-dev DB_HOSTNAME: postgres-dev
DB_PASSWORD: dsproject DB_PASSWORD: dsproject
volumes: volumes:
- tradon-sao-dev:/var/lib/trytond - /root/tradon/source/sao:/var/lib/trytond
- /root/tradon/source/dev:/usr/local/lib/python3.11/dist-packages/trytond - /root/tradon/source/dev:/usr/local/lib/python3.11/dist-packages/trytond
- ./tryton/trytond-dev.conf:/etc/trytond.conf - ./tryton/trytond-dev.conf:/etc/trytond.conf
expose: expose:
@@ -171,46 +183,6 @@ services:
entrypoint: > entrypoint: >
sh -c "while ! nc -z tradon-nginx 80; do sleep 1; done; certbot certonly --webroot -w /var/www/letsencrypt --email admin@tondomaine.com --agree-tos --no-eff-email -d srv413259.hstgr.cloud -d srv413259.hstgr.cloud" sh -c "while ! nc -z tradon-nginx 80; do sleep 1; done; certbot certonly --webroot -w /var/www/letsencrypt --email admin@tondomaine.com --agree-tos --no-eff-email -d srv413259.hstgr.cloud -d srv413259.hstgr.cloud"
plane-db:
image: postgres:15
container_name: plane-postgres
restart: unless-stopped
environment:
POSTGRES_DB: plane
POSTGRES_USER: plane
POSTGRES_PASSWORD: plane_secret
volumes:
- plane-db:/var/lib/postgresql/data
plane-redis:
image: redis:7
container_name: plane-redis
restart: unless-stopped
plane-backend:
image: makeplane/plane-backend:latest
container_name: plane-backend
depends_on:
- plane-db
- plane-redis
environment:
DATABASE_URL: postgres://plane:plane_secret@plane-db:5432/plane
REDIS_URL: redis://plane-redis:6379
SECRET_KEY: super-secret-key
CORS_ALLOWED_ORIGINS: https://srv413259.hstgr.cloud:8446
expose:
- "8000"
plane-frontend:
image: makeplane/plane-frontend:latest
container_name: plane-frontend
depends_on:
- plane-backend
environment:
NEXT_PUBLIC_API_BASE_URL: https://srv413259.hstgr.cloud:8446
expose:
- "3000"
volumes: volumes:
tradon-database: tradon-database:
external: true external: true
@@ -226,4 +198,3 @@ volumes:
external: true external: true
metabase-data: metabase-data:
gitea-data: gitea-data:
plane-db:

View File

@@ -26,6 +26,22 @@ server {
} }
} }
server {
listen 81 ssl;
server_name srv413259.hstgr.cloud;
ssl_certificate /etc/letsencrypt/live/srv413259.hstgr.cloud/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/srv413259.hstgr.cloud/privkey.pem;
location / {
proxy_pass http://hugo:80; # "hugo" = nom du service Docker
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}
server { server {
listen 8444 ssl; listen 8444 ssl;
server_name srv413259.hstgr.cloud; server_name srv413259.hstgr.cloud;
@@ -88,8 +104,8 @@ server {
client_max_body_size 100M; client_max_body_size 100M;
# Dashboard React (build Vite) # Dashboard React (build Vite)
root /var/www/dashboard; # ✅ Mets ici le chemin où tu as copié le contenu de `dist/` #root /var/www/dashboard; # ✅ Mets ici le chemin où tu as copié le contenu de `dist/`
index index.html; #index index.html;
location /dashboard { location /dashboard {
alias /var/www/dashboard/; alias /var/www/dashboard/;
@@ -108,6 +124,12 @@ server {
alias /var/www/dashboard; alias /var/www/dashboard;
} }
# location /os-site/ {
# root /var/www/;
# index index.html;
# try_files $uri $uri/ /os-site/index.html;
# }
# Metabase : reverse proxy vers port 3000 # Metabase : reverse proxy vers port 3000
location /metabase/ { location /metabase/ {
proxy_pass http://metabase:3000/; proxy_pass http://metabase:3000/;