An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Prepare GH Action and Pest
Joao Patricio845ca5c6b399
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.ymlindex 77a715a14e..c42a18f2cd 100644--- a/.github/workflows/docker-image.yml+++ b/.github/workflows/docker-image.yml@@ -13,17 +13,16 @@ jobs:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v3- - name: Build the Docker image- run: |- docker run --rm -u "$(id -u):$(id -g)" \- -v "$(pwd):/app" \- -w /app composer:2 \- composer install --ignore-platform-reqs- TAG=$(date +%s) ./vendor/bin/sail build- TAG=$(date +%s) ./vendor/bin/sail up -d- sleep 1- ./vendor/bin/sail ps- # Now to create .env- # Await database is created- # pest+ - uses: actions/checkout@v3+ - name: Build the Docker image+ run: |+ cp .env.example .env+ docker run --rm -u "$(id -u):$(id -g)" \+ -v "$(pwd):/app" \+ -w /app composer:2 \+ composer install --ignore-platform-reqs+ ./vendor/bin/sail build+ ./vendor/bin/sail up -d+ ./vendor/bin/sail artisan key:generate+ ./vendor/bin/sail artisan migrate:fresh --seed+ ./vendor/bin/pestdiff --git a/docker-compose.yaml b/docker-compose.yamlindex 2b1379e2db..1e88693562 100644--- a/docker-compose.yaml+++ b/docker-compose.yaml@@ -1,4 +1,16 @@version: '3.8'++x-testing-host: &testing-host-base+ image: coolify-testing-host+ build:+ dockerfile: Dockerfile+ context: ./docker/testing-host+ volumes:+ - /var/run/docker.sock:/var/run/docker.sock+ - ./docker/testing-host/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf+ networks:+ - coolify+services:php:image: "coolify:${TAG:-4}"@@ -19,6 +31,9 @@ services:- .:/var/www/htmlnetworks:- coolify+ depends_on:+ postgres:+ condition: service_healthypostgres:image: postgres:15-alpineports:@@ -36,34 +51,18 @@ services:test:["CMD-SHELL",- "pg_isready -U $$DB_USERNAME",+ "pg_isready -U coolify","-d",- "db_prod"+ "coolify"]- retries: 3- timeout: 5s+ retries: 5+ timeout: 10stesting-host:+ <<: *testing-host-basecontainer_name: coolify-testing-host- image: coolify-testing-host- build:- dockerfile: Dockerfile- context: ./docker/testing-host- volumes:- - /var/run/docker.sock:/var/run/docker.sock- - ./docker/testing-host/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf- networks:- - coolifytesting-host2:+ <<: *testing-host-basecontainer_name: coolify-testing-host-2- image: coolify-testing-host- build:- dockerfile: Dockerfile- context: ./docker/testing-host- volumes:- - /var/run/docker.sock:/var/run/docker.sock- - ./docker/testing-host/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf- networks:- - coolifyvolumes:db-coolify: