mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 08:20:00 +00:00
28 lines
806 B
YAML
28 lines
806 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
finance-backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: finance-laravel-backend
|
|
restart: always
|
|
volumes:
|
|
- .:/var/www
|
|
ports:
|
|
- "8000:9000" # 🎯 把主機的 8000 Port 轉給 Laravel
|
|
environment:
|
|
- APP_ENV=production
|
|
- APP_DEBUG=false
|
|
- DB_CONNECTION=pgsql
|
|
- DB_HOST=161.118.239.140 # 🎯 直接連到你 1Panel 活著的 PostgreSQL
|
|
- DB_PORT=5432
|
|
- DB_DATABASE=postgresql://postgres:[z6KvSxp4WB2mMfDP]@db.ktffdnordbmnaamvqpec.supabase.co:5432/postgres
|
|
- DB_USERNAME=myfinance_henry4682
|
|
- DB_PASSWORD=DwmQ78PB
|
|
networks:
|
|
- 1Panel-network # 讓它跟你的 1Panel 其他容器處在同一個網路大腦中
|
|
|
|
networks:
|
|
1Panel-network:
|
|
external: true |