version: "3.8"
services:
db:
image: postgres:15
container_name: fastmcp_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
env_file: .env
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
- db
env_file: .env
container_name: app
volumes:
postgres_data: