version: '3.2' services: app: image: laravel-demo-app build: context: ./ dockerfile: ./Dockerfile restart: "no" working_dir: /app ports: - '8000:8000' volumes: - ./storage/laravel:/app/storage command: ./artisan serve --host 0.0.0.0 depends_on: - db environment: - DB_CONNECTION - DB_HOST - DB_PORT - DB_DATABASE - DB_USERNAME - DB_PASSWORD db: image: postgres environment: - POSTGRES_PASSWORD - POSTGRES_USER volumes: - ./storage/postgres:/var/lib/postgresql/data