forked from awaazo/awaazo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (92 loc) · 2.95 KB
/
docker-compose.yml
File metadata and controls
98 lines (92 loc) · 2.95 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Comment: How to install CUDA on your system with a CUDA-enabled NVIDIA GPU
#
# Prerequisites:
# - CUDA-enabled NVIDIA GPU
# - NVIDIA driver installed
#
# Steps to install CUDA:
# 1. Check the CUDA compatibility of your GPU by referring to the NVIDIA CUDA documentation:
# [CUDA GPU Support](https://developer.nvidia.com/cuda-gpus)
# 2. Download the CUDA Toolkit from the NVIDIA CUDA Toolkit download page:
# [CUDA Toolkit Downloads](https://developer.nvidia.com/cuda-downloads)
# 3. Follow the installation instructions provided by NVIDIA for your specific operating system:
# - Windows: [CUDA Installation Guide for Windows](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html)
# - Linux: [CUDA Installation Guide for Linux](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)
# - macOS: [CUDA Installation Guide for macOS](https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html)
# 4. After successful installation, verify the CUDA installation by running the following command in the terminal:
# ```
# nvcc --version
# ```
# This should display the CUDA version information.
#
# Note: Make sure to carefully follow the installation instructions provided by NVIDIA to ensure a successful installation.
# Command to clear cache and dangling images and containers: docker system prune -a
version: '3.8'
services:
# DATABASE (MSSQL)
sql:
platform: linux/amd64
image: "mcr.microsoft.com/mssql/server:latest"
container_name: sql_server
user: root
ports:
- "1433:1433"
environment:
ACCEPT_EULA: "y"
SA_PASSWORD: "MyPass@word" # For local dev ONLY. DO NOT SHARE ANY CREDENTIALS
volumes:
- "//c/mount/sql:/var/opt/mssql/data"
restart: on-failure:5
# PYTHON Server (For AI related Stuff)
python_backend:
platform: linux/amd64
build:
context: Python/.
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
container_name: python_server
ports:
- "8500:8000"
volumes:
- "//c/backend_server/ServerFiles:/home/myuser/code/ServerFiles"
# BACKEND ASP.NET Server
backend:
platform: linux/amd64
build:
context: Backend/Backend/.
target: final
container_name: backend_server
ports:
- "32773:80"
links:
- sql:database
- sql:sql_server
- python_backend:py
environment:
ASPNETCORE_ENVIRONMENT: Development
volumes:
- "//c/backend_server/ServerFiles:/app/ServerFiles"
depends_on:
- sql
- python_backend
restart: on-failure:5
# FRONTEND SERVER
frontend:
platform: linux/amd64
build:
context: frontend/.
container_name: frontend_server
environment:
NODE_ENV: production
ports:
- "3500:3500"
links:
- backend:backend_server
depends_on:
- backend
restart: on-failure:5