Update GitLab CI configuration to use Docker Compose for deployment #5

This commit is contained in:
Marek Lesko
2025-07-28 08:18:51 +00:00
parent 246c22ff70
commit 91ffd122e9
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
version: '3'
services:
app:
image: registry.lesko.me/marek/centrum:latest
depends_on:
- db
restart: unless-stopped
network_mode: host
ports:
- "5000:5000"
db:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: unless-stopped
network_mode: host
environment:
SA_PASSWORD: P@ssw0rd
ACCEPT_EULA: Y

View File

@@ -88,4 +88,4 @@ docker-deploy:
- production
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest
- docker compose -f deployment/docker-compose.yaml up -d