Files
pickling-mes/docker-compose.dev.yml

36 lines
728 B
YAML
Raw Normal View History

version: '3.8'
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: pickling_mes
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
backend:
build:
context: ./backend
dockerfile: Dockerfile
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql+asyncpg://postgres:password@postgres:5432/pickling_mes
REDIS_URL: redis://redis:6379/0
depends_on:
- postgres
- redis
volumes:
- ./backend:/app
volumes:
postgres_data: