titanicai.dev

TitanicAI is built entirely on container technology with Docker. To be able to run the code from the TitanicAI GitHub repository, all you need on your local workstation is Docker Installation.

Documentation Packages Showcase
Project Overview DockerHub Api Image Live Demo
Project Description DockerHub Webapp Image Gallery
R Model Code Overview    
C# Webapp Code Overview    
Development Process    
Deployment Process    

Try TitanicAI Now

Option 1: Docker Compose

Copy this YAML into a new docker-compose.yaml file on your file system.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: '3'
services:
  api:
    image: qbituniverse/titanicai-api:latest
    container_name: titanicai-api
    ports:
      - 8011:8000
    tty: true
    networks:
      - titanicai-bridge

  webapp:
    image: qbituniverse/titanicai-webapp:latest
    depends_on:
      - api
    container_name: titanicai-webapp
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - WebApp__AiApi__BaseUri=http://titanicai-api:8000
    ports:
      - 8010:80
    tty: true
    networks:
      - titanicai-bridge

networks:
  titanicai-bridge:
    driver: bridge

Then use the commands below to start TitanicAI up and use it.

1
2
3
4
5
6
7
8
9
10
11
# start up TitanicAI
docker-compose up

# TitanicAI Webapp
start http://localhost:8010

# TitanicAI Api docs
start http://localhost:8011/__docs__/

# finish and clean up TitanicAI
docker-compose down

Option 2: Docker Run

Alternatively, you can run TitanicAI without compose, just simply use docker commands below.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# create network
docker network create titanicai-bridge

# start up TitanicAI containers
docker run --name titanicai-api -d -p 8011:8000 \
--network=titanicai-bridge qbituniverse/titanicai-api:latest

docker run --name titanicai-webapp -d -p 8010:80 \
-e ASPNETCORE_ENVIRONMENT=Development \
-e WebApp__AiApi__BaseUri=http://titanicai-api:8000 \
--network=titanicai-bridge qbituniverse/titanicai-webapp:latest

# TitanicAI Webapp
start http://localhost:8010

# TitanicAI Api docs
start http://localhost:8011/__docs__/

# finish and clean up TitanicAI
docker rm -fv titanicai-api
docker volume rm -f titanicai-api
docker rm -fv titanicai-webapp
docker volume rm -f titanicai-webapp
docker network rm titanicai-bridge