version: '3' services: postgres: image: postgres container_name: lae_pgsql environment: POSTGRES_PASSWORD: 111111 ports: - "5433:5432" volumes: - ./lae_pg_data:/var/lib/postgresql/data - ./init_db:/docker-entrypoint-initdb.d python: build: context: . dockerfile: Dockerfile image: lae_python_image:3.10 container_name: lae_python volumes: - .:/app ports: - "8003:8003" stdin_open: true tty: true command: /bin/bash volumes: lae_pg_data: