Hosting works
All checks were successful
Build and Push Container / build-and-push (push) Successful in 17s
All checks were successful
Build and Push Container / build-and-push (push) Successful in 17s
This commit is contained in:
@@ -29,6 +29,7 @@ jobs:
|
|||||||
images: gitea.reeseapps.com/services/alicia-ai-terminology
|
images: gitea.reeseapps.com/services/alicia-ai-terminology
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
|
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
|
||||||
|
type=ref,event=tag
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/library/nginx:alpine
|
FROM docker.io/library/nginx:alpine
|
||||||
COPY . /usr/share/nginx/html
|
COPY . /usr/share/nginx/html
|
||||||
EXPOSE 8080
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ systemctl --user daemon-reload
|
|||||||
systemctl --user start alicia_demo.service
|
systemctl --user start alicia_demo.service
|
||||||
```
|
```
|
||||||
|
|
||||||
Then open `http://localhost:8080`.
|
Then open `http://localhost:8081`.
|
||||||
|
|
||||||
Stop and remove:
|
Stop and remove:
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ Build and run directly:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
podman build -t alicia-ai-cheatsheet .
|
podman build -t alicia-ai-cheatsheet .
|
||||||
podman run -d --name alicia-ai-cheatsheet -p 9090:8080 alicia-ai-cheatsheet
|
podman run -d --name alicia-ai-cheatsheet -p 9090:80 alicia-ai-cheatsheet
|
||||||
```
|
```
|
||||||
|
|
||||||
Then open `http://localhost:9090`.
|
Then open `http://localhost:9090`.
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[Container]
|
[Container]
|
||||||
ContainerName=alicia_demo
|
ContainerName=alicia_demo
|
||||||
PublishPort=8080:8080/tcp
|
PublishPort=8081:80/tcp
|
||||||
Image=gitea.reeseapps.com/services/alicia-ai-terminology:main
|
Image=gitea.reeseapps.com/services/alicia-ai-terminology:main
|
||||||
HealthCheckInterval=30s
|
HealthCmd=WGET --spider --quiet http://localhost:80
|
||||||
HealthCheckTimeout=10s
|
HealthInterval=30s
|
||||||
HealthCheckRetries=5
|
HealthTimeout=10s
|
||||||
HealthCheckCommand=WGET --spider --quiet http://localhost:8080
|
HealthRetries=5
|
||||||
|
HealthOnFailure=kill
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Alicia Demo Web Service
|
Description=Alicia Demo Web Service
|
||||||
|
|||||||
Reference in New Issue
Block a user