mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
fix: change docker-compose.yml
All checks were successful
Laravel-Oracle-Deploy / redeploy (push) Successful in 3s
All checks were successful
Laravel-Oracle-Deploy / redeploy (push) Successful in 3s
This commit is contained in:
@@ -1,28 +1,26 @@
|
|||||||
|
version: "3"
|
||||||
services:
|
services:
|
||||||
# 🐘 1. 你的 Laravel 後端服務
|
backend:
|
||||||
finance-backend:
|
image: finance_app-finance-backend:latest
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: finance-laravel-backend
|
container_name: finance-laravel-backend
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "8081:9000"
|
|
||||||
environment:
|
|
||||||
- APP_ENV=production
|
|
||||||
- APP_DEBUG=false
|
|
||||||
- DB_CONNECTION=pgsql
|
|
||||||
- DB_HOST=finance-laravel-backend-postgres # 🎯 關鍵:改用資料庫的服務名稱當作 Host!
|
|
||||||
- DB_PORT=5432
|
|
||||||
- DB_DATABASE=myfinance
|
|
||||||
- DB_USERNAME=myfinance_henry4682
|
|
||||||
- DB_PASSWORD=DwmQ78PB
|
|
||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
depends_on:
|
ports:
|
||||||
- finance-postgres # 🎯 確保資料庫先開,後端才開
|
- "8081:8000"
|
||||||
|
environment:
|
||||||
|
APP_ENV: production
|
||||||
|
APP_DEBUG: "false"
|
||||||
|
APP_URL: https://fin-buddy.duckdns.org
|
||||||
|
DB_CONNECTION: pgsql
|
||||||
|
DB_HOST: finance-laravel-backend-postgres
|
||||||
|
DB_PORT: 5432
|
||||||
|
DB_DATABASE: myfinance
|
||||||
|
DB_USERNAME: myfinance_henry4682
|
||||||
|
DB_PASSWORD: DwmQ78PB
|
||||||
|
GOOGLE_REDIRECT_URI: https://fin-buddy.duckdns.org/auth/google/callback
|
||||||
|
GOOGLE_CLIENT_ID: 909352259943-vr216oea79h706ru7imm4lfdftej8qe0.apps.googleusercontent.com
|
||||||
|
GOOGLE_CLIENT_SECRET: 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
|
||||||
|
|
||||||
# 🐬 2. 直接在這裡把消失的 PostgreSQL 生回來!
|
|
||||||
finance-postgres:
|
finance-postgres:
|
||||||
image: postgres:15-alpine # 使用穩定的 15-alpine 版本
|
image: postgres:15-alpine # 使用穩定的 15-alpine 版本
|
||||||
container_name: finance-laravel-backend-postgres
|
container_name: finance-laravel-backend-postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user