Skip to content

Commit

Permalink
feat: add ports & shared volume for ui and server on Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
johandry committed Nov 1, 2024
1 parent 0154016 commit a95b097
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions deployments/azure/scripts/ai-unlimited-ui.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull {0}/{1}:{2}

ExecStart=/usr/bin/docker run \
-e TD_VCD_UI_PORT={3} \
-e TD_VCD_USE_TLS=false \
-e TD_VCD_AUTH_PORT={4}\
-e TD_VCD_API_PORT={5}\
-e TD_VCD_INIT_API_KEY \
-v /etc/td/ai-unlimited:/etc/td \
-p {3}:80 \
-p 80:80 \
-p 443:443 \
-v ssl_certs:/etc/ssl/td \
--network ai_unlimited {6} \
--rm --name %n {0}/{1}:{2}
--rm --name %n {0}/{1}:{2}

[Install]
WantedBy=multi-user.target
4 changes: 3 additions & 1 deletion deployments/azure/scripts/ai-unlimited.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ TimeoutStartSec=0
Restart=always
RestartSec=2
EnvironmentFile=/etc/td/ai-unlimited/init_api_key.txt
ExecStartPre=-/usr/bin/docker volume create ssl_certs
ExecStartPre=-/usr/bin/docker network create -d bridge ai_unlimited
ExecStartPre=-/usr/bin/mkdir -p /etc/td/ai-unlimited
ExecStartPre=-/usr/bin/docker stop %n
Expand All @@ -23,9 +24,10 @@ ExecStart=/usr/bin/docker run \
-e ARM_SUBSCRIPTION_ID={5} \
-e ARM_TENANT_ID={6} \
-e TD_VCD_INIT_API_KEY \
-v /etc/td/ai-unlimited:/etc/td \
-p {3}:3000 \
-p {4}:3282 \
-v /etc/td/ai-unlimited:/etc/td \
-v ssl_certs:/etc/td/ssl \
--network ai_unlimited {7} \
--rm --name %n {0}/{1}:{2} workspaces serve -v

Expand Down

0 comments on commit a95b097

Please sign in to comment.