05.01.26
This commit is contained in:
@@ -107,6 +107,18 @@ services:
|
||||
expose:
|
||||
- "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:
|
||||
image: tradon/tradon
|
||||
container_name: tradon-dev
|
||||
@@ -116,7 +128,7 @@ services:
|
||||
DB_HOSTNAME: postgres-dev
|
||||
DB_PASSWORD: dsproject
|
||||
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
|
||||
- ./tryton/trytond-dev.conf:/etc/trytond.conf
|
||||
expose:
|
||||
@@ -171,46 +183,6 @@ services:
|
||||
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"
|
||||
|
||||
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:
|
||||
tradon-database:
|
||||
external: true
|
||||
@@ -226,4 +198,3 @@ volumes:
|
||||
external: true
|
||||
metabase-data:
|
||||
gitea-data:
|
||||
plane-db:
|
||||
|
||||
@@ -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 {
|
||||
listen 8444 ssl;
|
||||
server_name srv413259.hstgr.cloud;
|
||||
@@ -88,8 +104,8 @@ server {
|
||||
client_max_body_size 100M;
|
||||
|
||||
# Dashboard React (build Vite)
|
||||
root /var/www/dashboard; # ✅ Mets ici le chemin où tu as copié le contenu de `dist/`
|
||||
index index.html;
|
||||
#root /var/www/dashboard; # ✅ Mets ici le chemin où tu as copié le contenu de `dist/`
|
||||
#index index.html;
|
||||
|
||||
location /dashboard {
|
||||
alias /var/www/dashboard/;
|
||||
@@ -108,6 +124,12 @@ server {
|
||||
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
|
||||
location /metabase/ {
|
||||
proxy_pass http://metabase:3000/;
|
||||
|
||||
Reference in New Issue
Block a user