stages:
- build
build:
stage: build
image: docker:stable
services:
- docker:dind
script:
- apk add --no-cache docker-compose
- docker-compose -f docker-compose-prod.yaml up -d --remove-orphans --build
tags:
- deploy
http.exceptionHandling { customizer -> customizer.accessDeniedHandler(accessDeniedHandler()) }
location =/ {
proxy_pass http://127.0.0.1:8081/;
}
location ~ ^/.+ {
proxy_pass http://127.0.0.1:8080;
}
location ~ ^/(css|fonts|images|js)/.+ {
proxy_pass http://127.0.0.1:8081/;
}