Enable HTTPS production deployment on Sinbad2 via Apache reverse proxy.

This commit is contained in:
Mireya Cueto Garrido
2026-06-03 10:41:02 +02:00
parent 31be326f2c
commit cccbe15275
22 changed files with 264 additions and 28 deletions
+39
View File
@@ -0,0 +1,39 @@
services:
backend:
build:
context: ./backend
target: production
container_name: backend
restart: unless-stopped
ports:
- "8070:8000"
depends_on:
- db
env_file:
- backend/.env
frontend:
build:
context: ./frontend
target: production
args:
VITE_BASE_PATH: /deckofcards/
VITE_API_URL: /deckofcards/api
container_name: frontend
restart: unless-stopped
ports:
- "8071:80"
depends_on:
- backend
db:
image: mongo:4.4
container_name: mongo
restart: always
ports:
- "27018:27017"
volumes:
- mongo_data:/data/db
volumes:
mongo_data: