chore: rename services in docker-compose.yml for clarity and update environment variable handling
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 2m32s

This commit is contained in:
Julien Froidefond
2025-12-11 12:03:48 +01:00
parent 3fd3e165e2
commit bd6f071620
2 changed files with 37 additions and 15 deletions

View File

@@ -0,0 +1,22 @@
name: Deploy with Docker Compose
on:
push:
branches:
- main
jobs:
deploy:
runs-on: mac-orbstack-runner
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy stack
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
AUTH_URL: ${{ vars.AUTH_URL }}
run: |
docker compose up -d

View File

@@ -1,7 +1,7 @@
version: "3.8"
services:
app:
peakskills-app:
build: .
ports:
- "3008:3000"
@@ -14,15 +14,15 @@ services:
DB_PASSWORD: peakskills_password
NEXT_PUBLIC_API_URL: ""
# Auth.js configuration
AUTH_SECRET: "FvhDat3sJK5TI1L4fcugCGFmLsO1BCi+mwSYeLkl8JA="
AUTH_SECRET: ${AUTH_SECRET:-FvhDat3sJK5TI1L4fcugCGFmLsO1BCi+mwSYeLkl8JA=}
AUTH_TRUST_HOST: "true"
AUTH_URL: "http://localhost:3000"
AUTH_URL: ${AUTH_URL:-http://localhost:3008}
depends_on:
postgres:
peakskills-postgres:
condition: service_healthy
restart: unless-stopped
postgres:
peakskills-postgres:
image: postgres:15
environment:
POSTGRES_DB: peakskills
@@ -40,16 +40,16 @@ services:
retries: 5
# Adminer - Interface web pour PostgreSQL
adminer:
image: adminer:4.8.1
restart: always
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: postgres
ADMINER_DESIGN: pepa-linha-dark
depends_on:
- postgres
# peakskills-adminer:
# image: adminer:4.8.1
# restart: always
# ports:
# - "8080:8080"
# environment:
# ADMINER_DEFAULT_SERVER: postgres
# ADMINER_DESIGN: pepa-linha-dark
# depends_on:
# - peakskills-postgres
volumes:
postgres_data: