https://github.com/qbituniverse/ai-titanic
Titanic AI model trained in R code running in Docker.
https://github.com/qbituniverse/ai-titanic
ai docker r-code r-studio
Last synced: about 1 month ago
JSON representation
Titanic AI model trained in R code running in Docker.
- Host: GitHub
- URL: https://github.com/qbituniverse/ai-titanic
- Owner: qbituniverse
- License: mit
- Created: 2024-09-04T06:15:48.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T20:16:36.000Z (8 months ago)
- Last Synced: 2025-02-03T16:33:50.281Z (3 months ago)
- Topics: ai, docker, r-code, r-studio
- Language: JavaScript
- Homepage:
- Size: 2.51 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ai-titanic
**ai-titanic** is built entirely on container technology with [Docker](https://www.docker.com). To be able to run the code from this repository, all you need on your local workstation is [Docker Installation](https://docs.docker.com/get-docker/).
|Documentation|Packages|Showcase|
|-----|-----|-----|
|[Project Overview](/docs/overview.md)|[DockerHub Api Image](https://hub.docker.com/repository/docker/qbituniverse/ai-titanic-api)|[Gallery](/docs/gallery.md)|
|[Project Description](/docs/description.md)|[DockerHub Webapp Image](https://hub.docker.com/repository/docker/qbituniverse/ai-titanic-webapp)||
|[R Model Code Overview](/docs/model.md)|||
|[C# Webapi Code Overview](/docs/webapi.md)|||
|[C# Webapp Code Overview](/docs/webapp.md)|||
|[Development Process](/docs/development.md)|||
|[Deployment Process](/docs/deployment.md)|||### Try ai-titanic Now
#### Option 1: Docker Compose
Copy this YAML into a new **docker-compose.yaml** file on your file system.
```yaml
version: '3'
services:
api:
image: qbituniverse/ai-titanic-api:latest
container_name: ai-titanic-api
ports:
- 8011:8000
tty: true
networks:
- ai-titanic-bridgewebapp:
image: qbituniverse/ai-titanic-webapp:latest
depends_on:
- api
container_name: ai-titanic-webapp
environment:
- ASPNETCORE_ENVIRONMENT=Development
- WebApp__AiApi__BaseUri=http://ai-titanic-api:8000
ports:
- 8010:8080
tty: true
networks:
- ai-titanic-bridgenetworks:
ai-titanic-bridge:
driver: bridge
```Then use the commands below to start **ai-titanic** up and use it.
```bash
# start up ai-titanic
docker compose up# ai-titanic Webapp
start http://localhost:8010# ai-titanic Api docs
start http://localhost:8011/__docs__/# finish and clean up ai-titanic
docker compose down
```#### Option 2: Docker Run
Alternatively, you can run **ai-titanic** without compose, just simply use docker commands below.
```bash
# create network
docker network create ai-titanic-bridge# start up ai-titanic containers
docker run --name ai-titanic-api -d -p 8011:8000 \
--network=ai-titanic-bridge qbituniverse/ai-titanic-api:latestdocker run --name ai-titanic-webapp -d -p 8010:8080 \
-e ASPNETCORE_ENVIRONMENT=Development \
-e WebApp__AiApi__BaseUri=http://ai-titanic-api:8000 \
--network=ai-titanic-bridge qbituniverse/ai-titanic-webapp:latest# ai-titanic Webapp
start http://localhost:8010# ai-titanic Api docs
start http://localhost:8011/__docs__/# finish and clean up ai-titanic
docker rm -fv ai-titanic-api
docker volume rm -f ai-titanic-api
docker rm -fv ai-titanic-webapp
docker volume rm -f ai-titanic-webapp
docker network rm ai-titanic-bridge
```