mirror of
https://github.com/d0zingcat/alert-message-center.git
synced 2026-05-13 15:09:19 +00:00
39 lines
798 B
YAML
39 lines
798 B
YAML
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/server/Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:password@postgres:5432/alert_message_center
|
|
- FEISHU_APP_ID=${FEISHU_APP_ID}
|
|
- FEISHU_APP_SECRET=${FEISHU_APP_SECRET}
|
|
# ... other envs
|
|
depends_on:
|
|
- postgres
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/web/Dockerfile
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- server
|
|
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DB: alert_message_center
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres_data:
|