diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml index df62cb5..3432910 100644 --- a/.gitea/workflows/build-push.yml +++ b/.gitea/workflows/build-push.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index d08ec97..41b1067 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM docker.io/library/nginx:alpine COPY . /usr/share/nginx/html -EXPOSE 8080 +EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/README.md b/README.md index 1841803..708b3fe 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/alicia_demo.container b/alicia_demo.container index 27b61b7..72a3ce2 100644 --- a/alicia_demo.container +++ b/alicia_demo.container @@ -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