diff --git a/.env b/.env new file mode 100644 index 0000000..3b30f9d --- /dev/null +++ b/.env @@ -0,0 +1,33 @@ +# CUDA 12.9.1 Python environment configuration for RTX 5090 +IMAGE_BASE=ghcr.io/gitgud5000/base-image:v1-redo +IMAGE_TAG=v2-py312 +PYTHON_VERSION=3.12 +PYTHON_VENV_NAME=python_312 + +# Network configuration +DIRECT_ADDRESS=127.0.0.1 +DIRECT_ADDRESS_GET_WAN=false +WORKSPACE=/workspace +WORKSPACE_SYNC=false + +# Web configuration +WEB_ENABLE_AUTH=true +WEB_USER=user +WEB_PASSWORD=password + +# Service configuration +SERVERLESS=false +SSH_PORT_HOST=2222 +SERVICEPORTAL_PORT_HOST=1111 +SERVICEPORTAL_METRICS_PORT=21111 + +# Jupyter configuration +JUPYTER_PORT_HOST=8888 +JUPYTER_METRICS_PORT=28888 + +# Syncthing configuration +SYNCTHING_UI_PORT_HOST=8384 +SYNCTHING_TRANSPORT_PORT_HOST=22999 + +# CloudFlare tunnel configuration +CF_QUICK_TUNNELS=true diff --git a/build/Dockerfile b/build/Dockerfile index f5ffc6f..dbfdd8d 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,12 +1,12 @@ # For build automation - Allows building from any ai-dock base image -ARG IMAGE_BASE="ghcr.io/ai-dock/base-image:v2-cuda-12.1.1-base-22.04" +ARG IMAGE_BASE="ghcr.io/gitgud5000/base-image:v1-redo" FROM ${IMAGE_BASE} -LABEL org.opencontainers.image.source https://github.com/ai-dock/python +LABEL org.opencontainers.image.source https://github.com/gitgud5000/python -LABEL org.opencontainers.image.description "Python development environment in a cloud-first docker container" +LABEL org.opencontainers.image.description "Python development environment with CUDA 12.8.1 for RTX 5090" -LABEL maintainer="Rob Ballantyne " +LABEL maintainer="GitGud5000" ENV JUPYTER_VENV=$VENV_DIR/jupyter ENV JUPYTER_VENV_PYTHON=$JUPYTER_VENV/bin/python diff --git a/docker-compose.yaml b/docker-compose.yaml index 81bb604..2a70bc7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,26 +1,25 @@ -version: "3.8" # Compose file build variables set in .env services: supervisor: build: context: ./build args: - IMAGE_BASE: ${IMAGE_BASE:-ghcr.io/ai-dock/base-image:v2-cuda-11.8.0-runtime-22.04} + IMAGE_BASE: ${IMAGE_BASE:-ghcr.io/gitgud5000/base-image:v1-redo} PYTHON_VERSION: ${PYTHON_VERSION:-all} PYTHON_VENV_NAME: ${PYTHON_VENV_NAME:-python_312} tags: - - "ghcr.io/ai-dock/python:${IMAGE_TAG:-all-v2-cuda-11.8.0-runtime-22.04}" + - "ghcr.io/gitgud5000/python:${IMAGE_TAG:-py312}" - image: ghcr.io/ai-dock/python:${IMAGE_TAG:-all-v2-cuda-11.8.0-runtime-22.04} + image: ghcr.io/gitgud5000/python:${IMAGE_TAG:-py312} - ## For Nvidia GPU's - You probably want to uncomment this - #deploy: - # resources: - # reservations: - # devices: - # - driver: nvidia - # count: all - # capabilities: [gpu] + ## For Nvidia GPU's - Enabled for RTX 5090 + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] devices: - "/dev/dri:/dev/dri"