ci: include application stack inside repository and fix deployment path
This commit is contained in:
parent
d4724a8e0d
commit
6db20ab600
|
|
@ -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
|
||||||
|
|
@ -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"
|
||||||
Loading…
Reference in New Issue