Deploy with Docker
This guide provides a step-by-step walkthrough for deploying the CodeThreat ASP with MongoDB using Docker Compose.
Access to CodeThreat Container Registry
docker login codethreatcontainer.azurecr.ioStep 1: Create the Docker Compose File
version: "3"
services:
codethreat_asp:
image: codethreatcontainer.azurecr.io/codethreatsast-server-selfhosted:2411.07.1-master
restart: on-failure
ports:
- "8081:8081" # Expose the application on port 8081
depends_on:
- mongodb
volumes:
- ./ctdata:/app/ctdata
environment:
HOSTNAME: "0.0.0.0"
PORT: "8081"
MONGO_URL: "mongodb://mongodb:27017"
# Uncomment and configure SSL settings if needed
# SECURE_PORT: "443"
# CERTIFICATE_KEY_PATH: "/path/to/key.key"
# CRT_PATH: "/path/to/cert.crt"
mongodb:
image: mongo
restart: always
volumes:
- ./mongodb/data:/data/db
Step 2: Start the Containers
Last updated