diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..9b97c9c --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,30 @@ +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