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
|
||||
tags: |
|
||||
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
type=ref,event=tag
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM docker.io/library/nginx:alpine
|
||||
COPY . /usr/share/nginx/html
|
||||
EXPOSE 8080
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
@@ -35,7 +35,7 @@ systemctl --user daemon-reload
|
||||
systemctl --user start alicia_demo.service
|
||||
```
|
||||
|
||||
Then open `http://localhost:8080`.
|
||||
Then open `http://localhost:8081`.
|
||||
|
||||
Stop and remove:
|
||||
|
||||
@@ -50,7 +50,7 @@ Build and run directly:
|
||||
|
||||
```bash
|
||||
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`.
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
[Container]
|
||||
ContainerName=alicia_demo
|
||||
PublishPort=8080:8080/tcp
|
||||
PublishPort=8081:80/tcp
|
||||
Image=gitea.reeseapps.com/services/alicia-ai-terminology:main
|
||||
HealthCheckInterval=30s
|
||||
HealthCheckTimeout=10s
|
||||
HealthCheckRetries=5
|
||||
HealthCheckCommand=WGET --spider --quiet http://localhost:8080
|
||||
HealthCmd=WGET --spider --quiet http://localhost:80
|
||||
HealthInterval=30s
|
||||
HealthTimeout=10s
|
||||
HealthRetries=5
|
||||
HealthOnFailure=kill
|
||||
|
||||
[Unit]
|
||||
Description=Alicia Demo Web Service
|
||||
|
||||
Reference in New Issue
Block a user