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
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 2m32s
This commit is contained in:
22
.gitea/workflows/deploy.yml
Normal file
22
.gitea/workflows/deploy.yml
Normal 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
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
peakskills-app:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "3008:3000"
|
- "3008:3000"
|
||||||
@@ -14,15 +14,15 @@ services:
|
|||||||
DB_PASSWORD: peakskills_password
|
DB_PASSWORD: peakskills_password
|
||||||
NEXT_PUBLIC_API_URL: ""
|
NEXT_PUBLIC_API_URL: ""
|
||||||
# Auth.js configuration
|
# Auth.js configuration
|
||||||
AUTH_SECRET: "FvhDat3sJK5TI1L4fcugCGFmLsO1BCi+mwSYeLkl8JA="
|
AUTH_SECRET: ${AUTH_SECRET:-FvhDat3sJK5TI1L4fcugCGFmLsO1BCi+mwSYeLkl8JA=}
|
||||||
AUTH_TRUST_HOST: "true"
|
AUTH_TRUST_HOST: "true"
|
||||||
AUTH_URL: "http://localhost:3000"
|
AUTH_URL: ${AUTH_URL:-http://localhost:3008}
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
peakskills-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
postgres:
|
peakskills-postgres:
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: peakskills
|
POSTGRES_DB: peakskills
|
||||||
@@ -40,16 +40,16 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
# Adminer - Interface web pour PostgreSQL
|
# Adminer - Interface web pour PostgreSQL
|
||||||
adminer:
|
# peakskills-adminer:
|
||||||
image: adminer:4.8.1
|
# image: adminer:4.8.1
|
||||||
restart: always
|
# restart: always
|
||||||
ports:
|
# ports:
|
||||||
- "8080:8080"
|
# - "8080:8080"
|
||||||
environment:
|
# environment:
|
||||||
ADMINER_DEFAULT_SERVER: postgres
|
# ADMINER_DEFAULT_SERVER: postgres
|
||||||
ADMINER_DESIGN: pepa-linha-dark
|
# ADMINER_DESIGN: pepa-linha-dark
|
||||||
depends_on:
|
# depends_on:
|
||||||
- postgres
|
# - peakskills-postgres
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user