Skip to content

Commit

Permalink
update unix socket doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 13, 2024
1 parent 573730b commit b871aa6
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

Run
```sh
# AI_SERVICE_IP="10.88.0.1"
AI_SERVICE_HOST="host.containers.internal"

doas podman run --restart=always -itd \
Expand All @@ -31,6 +30,30 @@ doas podman run --restart=always -itd \
monius/docker-instant-ai
```

Unix Socket

```sh
DOMAIN='xx.com'
CF_Token='xToken'
CF_Zone_ID='zID'
CF_Account_ID='aID'
AI_SERVICE_NAME='ai'
AI_SOCKET='/dev/shm/infra.sock'

doas podman run -itd \
--name instant-ai \
-e DOMAIN=$DOMAIN \
-e CF_Token=$CF_Token \
-e CF_Zone_ID=$CF_Zone_ID \
-e CF_Account_ID=$CF_Account_ID \
-e AI_SERVICE_NAME=$AI_SERVICE_NAME \
-e AI_SOCKET=$AI_SOCKET \
-v $AI_SOCKET:$AI_SOCKET \
-v /etc/ssl/$DOMAIN:/etc/nginx/ssl:rw \
-p 443:443 \
monius/docker-instant-ai
```

Test
```sh
doas podman run --name ii -p 80:80 -p 443:443 -itd monius/docker-instant-ai
Expand Down

0 comments on commit b871aa6

Please sign in to comment.