Skip to content

Commit

Permalink
#14: Improved .yml file x9.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulin-evgeny committed May 25, 2024
1 parent d5da018 commit f4df3da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ENV WEB_DOCUMENT_INDEX index.php

WORKDIR /app
COPY . /app

RUN chown -R application:www-data /app
USER application
RUN pwd && ls && composer install --no-dev --optimize-autoloader

RUN composer install --no-dev --optimize-autoloader
12 changes: 7 additions & 5 deletions .github/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ version: '3'

services:
nginx:
build: .
build:
context: ..
dockerfile: .github/Dockerfile
working_dir: /app
volumes:
- ../:/app
- .:/app
environment:
WEB_DOCUMENT_ROOT: /app/public
WEB_DOCUMENT_INDEX: index.php
WEB_DOCUMENT_ROOT: /app/public
WEB_DOCUMENT_INDEX: index.php

pgsql_test:
image: ronasit/postgres:12.5
Expand All @@ -18,5 +20,5 @@ services:
POSTGRES_DB: forge
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ..:/app
- ../:/app
command: ["-c", "fsync=off"]
1 change: 1 addition & 0 deletions .github/workflows/run-tests-with-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
cp .env.testing .env
- name: Docker-Compose Up
run: |
docker-compose build --no-cache
docker-compose up -d
- name: Prepare Containers
run: |
Expand Down

0 comments on commit f4df3da

Please sign in to comment.