ci: include application stack inside repository and fix deployment path

This commit is contained in:
mahdi 2026-07-19 23:47:06 +03:30
parent d4724a8e0d
commit 6db20ab600
2 changed files with 16 additions and 3 deletions

View File

@ -21,7 +21,6 @@ deploy_application:
stage: deploy stage: deploy
image: docker:24.0.7-cli image: docker:24.0.7-cli
script: script:
# FIXED: Added the missing hyphen below to make it a proper list item
- docker pull nginxdemos/hello:plain-text - docker pull nginxdemos/hello:plain-text
# Deploy the stack directly onto the host using the shared docker.sock # FIXED: Now pointing to the local path inside the repository root
- docker compose -f ../../stacks/applications/hello-world/docker-compose.yml up -d - docker compose -f ./stacks/hello-world/docker-compose.yml up -d

View File

@ -0,0 +1,14 @@
version: '3.8'
services:
web-test:
image: nginxdemos/hello:plain-text
container_name: hello_world_app
restart: always
ports:
- "127.0.0.1:8080:80" # Exposed only to localhost for Nginx reverse proxy
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"