Update docker-compose name and service aliases, adjust deploy workflow
All checks were successful
Build and Deploy / deploy (push) Successful in 7s

This commit is contained in:
2026-02-22 19:46:03 +00:00
parent 4c6f4d5865
commit fcef986d2b
2 changed files with 11 additions and 7 deletions

View File

@@ -10,8 +10,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Deploy n - name: Deploy nonograms-app
working-directory: /home/gkucmierz/docker/nonograms-app
run: | run: |
docker compose down --remove-orphans || true docker compose down --remove-orphans || true
docker compose up -d --build docker compose up -d --build

View File

@@ -1,19 +1,22 @@
name: nonograms-app
services: services:
app: nonograms-app:
container_name: nonograms-app container_name: nonograms-app
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
# ports: # ports:
# - "8081:80" # - "8083:80"
expose: expose:
- "80" - "80"
restart: unless-stopped restart: unless-stopped
# Uncomment the following lines if you want to mount the configuration locally for development/testing
# volumes: # volumes:
# - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro # - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks: networks:
- npm_public npm_public:
aliases:
- nonograms-app
networks: networks:
npm_public: npm_public: