Files
forumlify/docker-compose.yml
T
2026-08-09 12:02:54 +08:00

28 lines
537 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3'
services:
db:
image: postgres:15
environment:
POSTGRES_USER: forumlify
POSTGRES_PASSWORD: 123456
POSTGRES_DB: forumlify
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
app:
build: .
ports:
- "3003:3003"
depends_on:
- db
environment:
DATABASE_URL: postgresql://forumlify:123456@db:5432/forumlify
volumes:
- ./uploads:/app/uploads
volumes:
db_data: