feat: add Docker version check step and fix DATABASE_URL formatting in production compose file
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 4s

This commit is contained in:
2025-09-09 01:15:57 +02:00
parent aa4be7e05b
commit f278a44d8f
2 changed files with 6 additions and 1 deletions

View File

@@ -14,6 +14,11 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check Docker Versions
run: |
docker --version
docker compose version
- name: Create .env file - name: Create .env file
run: | run: |
echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env

View File

@@ -27,7 +27,7 @@ services:
environment: environment:
- RUST_LOG=info - RUST_LOG=info
- RUST_BACKTRACE=1 - RUST_BACKTRACE=1
- DATABASE_URL=DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database/${POSTGRES_DB} - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database/${POSTGRES_DB}
- HOST=0.0.0.0 - HOST=0.0.0.0
- PORT=8000 - PORT=8000
- PREFORK=1 - PREFORK=1