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 environment: DATABASE_URL: postgresql+asyncpg://postgres:password@postgres:5432/pickling_mes REDIS_URL: redis://redis:6379/0 depends_on: - postgres - redis volumes: - ./backend:/app frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "10031:80" depends_on: - backend volumes: postgres_data: